Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
HTMLPad 2018 15.5
WeBuilder 2018 15.5
SentiMask SDK Trial 2.0.0
Track Order For Magento 2 1.0.0
Calendar 365 For Dynamics CRM 4.0
Scimbo 1.2
Odoo Furnito Theme 1.0
.Net Assemblies/WSDL Import Utility for Delphi 6.0.4.0
Devart Excel Add-in for Zendesk 1.7
Excel Add-in for Marketo 1.7
GetOrgChart 2.5.3
AnyGantt JS Gantt Charts 8.6.0
AnyChart JS Charts and Dashboards 8.6.0
Multi Vendor Ecommerce Script & Apps 4.0
Magento 2 Inventory Management Extension 1.0
Top Code
MCU 8051 IDE 1.4.7
HTMLPad 2018 15.5
BedRock IDE 1.0
Email Grabber
jQuery Slider Ken Burns 1.0
Guest Book V. 2 V2
XML Products Showcase Slider 1.0
ActivePerl 5.8.4.810/5.6.1.638
Azizi search engine script PHP 4.1.10
Adaptive multi-focus image fusion using a wavelet-based statistical sharpness measure 1.0
STDF file reader 1.0
Hotel Management - Full Board Version 6.55
The Karma Language 1.0
jQuery Accordion Photo Gallery 1.0
RLS Algorithm Demo 1.0
Top Rated
VisualNEO Web 2018.12.15
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
ADO.NET Provider for ExactTarget 1.0
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
ATN Resume Finder 2.0
ATN Site Builder 3.0
Availability Booking Calendar PHP 1.0
PHP GZ Blog Script 1.1
Histogram Binwidth Optimization 1.0
File ID: 78809






Histogram Binwidth Optimization 1.0
Download Histogram Binwidth Optimization 1.0http://www.mathworks.comReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 9
Submit Rating:
Histogram Binwidth Optimization 1.0 Description
Description: function [optN, C, N] = sshist(x,N)
[optN, C, N] = sshist(x,N)

Function `sshist' returns the optimal number of bins in a histogram
used for density estimation.
Optimization principle is to minimize expected L2 loss function between
the histogram and an unknown underlying density function.
An assumption made is merely that samples are drawn from the density
independently each other.

The optimal binwidth D* is obtained as a minimizer of the formula,
(2K-V) / D^2,
where K and V are mean and variance of sample counts across bins with width D.
Optimal number of bins is given as (max(x) - min(x)) / D*.

For more information, visit
http://2000.jukuin.keio.ac.jp/shimazaki/res/histogram.html

Original paper:
Hideaki Shimazaki and Shigeru Shinomoto
A method for selecting the bin size of a time histogram
Neural Computation 19(6), 1503-1527, 2007
http://dx.doi.org/10.1162/neco.2007.19.6.1503

Example usage:
optN = sshist(x); hist(x,optN);

Input argument
x: Sample data vector.
N (optinal):
A vector that specifies the number of bins to be examined.
The optimal number of bins is selected from the elements of N.
Default value is N = 2:50.
* Do not search binwidths smaller than a sampling resolution of data.

License: Freeware

Related: unknown, and an, shigeru, assumption, bins, 3d 250, sshistx, sshistxn, variance, drawn, between the, bin size, examined, assumption made, are mean, maxx, 2kv d2, 250 do, optimal number

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 9



More Similar Code

Algorithm for solving search and optimization problems.



It is very fast and simple file to display histogram of a 3D image
imhist3(I,n) n is the number of bins in the histogram
imhist3(X,map) X isindexed 3D image and map is colormap map



A few popular metaheuristic algorithms are included, such as the particle swarm optimization, firefly algorithm, harmony search and others.



M-files accompanying the " Genetic Algorithms & New Optimization Methods in MATLAB " webinar.

These files provide what you need to run the two demos: Optimization of non-smooth objective function, and Optimization of a...



Particle swarm optimization is a technique used in many control systems application. Here i used the PSO in PID controller tuning



An animated simulation of Particles in 2D searching for a global minima of a simple function using Particle Swarm Optimization algorithm



The files in this folder solve the optimization case studies described in the paper "VaR vs CVaR in Risk Management and Optimization" by Sarykalin,S., Serraino,G., and Uryasev,S., in Tutorials in Operations Research, INFORMS 2008...



This upload contains a hybrid Particle Swarm Optimization algorithm for functions in the real space. An options file is also provided, which lets the user fully parameterize the process. The hybrid function used is the @fminsearch, which is...



This demo shows how to use MATLAB, Optimization Toolbox, and Genetic Algorithm and Direct Search Toolbox to optimize the design of a double wishbone suspension system.

Note: You will need to have the following products installed in...



GANSO is a programming library for global and nonsmooth, nonlinear optimization. Unlike local methods (e.g., quasi-Newton), global optimization methods aim at locating the absolute minimum of a function, not the nearest stationary point. GANSO...

User Review for Histogram Binwidth Optimization
- required fields
     

Please enter text on the image