hist command equivalent in java

Asked by Ramasamy Seenivasagan on 30 Jun 2013 at 2:54
Latest activity Commented on by Walter Roberson about 12 hours ago

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.

4 Comments

Ramasamy Seenivasagan about 13 hours ago

Thanks Walter Roberson, as you said histc() works for me, is there any code or logic available. It will be very useful. Thanks once again.

Image Analyst about 12 hours ago

This is very easy to write in 2 or 3 minutes. If you still need help writing this simple algorithm in C or Java as you require, I'm sure you can find forums for that. We don't provide assistance writing C or Java code.

Walter Roberson about 12 hours ago

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

Products

No products are associated with this question.

1 Answer

Answer by Image Analyst on 30 Jun 2013 at 8:34

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.

0 Comments

Image Analyst

Contact us