hist command equivalent in java

1 visualizzazione (ultimi 30 giorni)
Ramasamy Seenivasagan
Ramasamy Seenivasagan il 30 Giu 2013
Hi i am new to matlab, i need a help. I got a matlab code which uses hist command, i am porting the code to java, is there any equivalent code in java or can anyone give the logic behind hist command i can write it in java or c. Thanks in advance.
  5 Commenti
Walter Roberson
Walter Roberson il 1 Lug 2013
Do your bins happen to be equally spaced? And if they are, then is acceptable if samples within round-off error of the bin edges might be misclassified ?
Ramasamy Seenivasagan
Ramasamy Seenivasagan il 3 Lug 2013
Thanks image Analyst and Walter Robertson, i wrote java code and it works perfect. Thanks for your advice.

Accedi per commentare.

Risposte (1)

Image Analyst
Image Analyst il 30 Giu 2013
To construct the histogram an important step is to decide where to put the edges of the bins. To see the code do this:
>> edit hist.m
You can see edges mentioned in several places. Then translate the code into Java or C, whichever you decide on.

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by