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
Excel .Net Library 2020.6
fsMediaLibrary.NET 2019.11
VaxVoIP SIP Server SDK 5.2.0
Database Workbench Pro 5.7.4
dbForge Data Generator for Oracle 2.2
dbExpress driver for SQL Server 8.2
Grobino Online Grocery Shopping 1.1
PortalNest: Dynamics CRM Customer Portal 1.0
Purbis: JustEat Clone Scripts 1.1
Monoline MLM Software 1.3.4
Cab Booking Android Application by iNet Mobile 1.4
Shopping Cart Script by i-Netsolution 1.3.4
PortalNest: SuiteCRM Customer Portal 1.0
SugarCRM WordPress Customer Portal 3.2.0
The C# PDF Library 2020.6.0
Top Code
IcrediBB Bulletin Board System 1.0
Ez Paypal Clone 7.4.2
MLM Software ONE 1.5.46
Simple Web Content Management System for Scripts 1.1
quicktest 0.6.1
POST Affiliate Pro 1.2.1
ScriptCalendar
dbm I.13
Dots and Boxes 1.0
Affiliate Pro Plus 2.9
HiCalendar
Free PHPNuke Subscription Module 1.0
Ninja Playland 1.1
Post Affiliate Pro Tracker 1.0.0
Basic Calendar
Top Rated
phpEnter 5.1.
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
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
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