Class Histogram
- java.lang.Object
-
- com.actelion.research.calc.histogram.Histogram
-
public class Histogram extends java.lang.ObjectHistogramCopyright: Actelion Ltd., Inc. All Rights Reserved This software is the proprietary information of Actelion Pharmaceuticals, Ltd. Use is subject to license terms.
- Version:
- 1.0 29 Feb 2008 MvK: Start implementation 06 Jun 2016 MvK: added cumulative histogram to output. 03.12.2018 improvements toString()
- Author:
- Modest von Korff
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description floatgetBin(int index)intgetBinIndex(double v)float[]getBins()doublegetBinWidth()int[]getFrequencies()intgetFrequency(int index)MatrixgetHistogram()doublegetMaximumX()doublegetMaximumY()doublegetMinimumX()intgetNumBins()doublegetSumFromRange(double low, double up)Parts of the range outside the bins are not considered.doublegetSumY()voidinitialize(double[] arrRaw, double min, double max, int bins)static voidmain(java.lang.String[] args)java.lang.StringtoString()First row: bins, upper border.
-
-
-
Method Detail
-
initialize
public void initialize(double[] arrRaw, double min, double max, int bins)
-
getBinIndex
public int getBinIndex(double v)
-
getFrequencies
public int[] getFrequencies()
-
getFrequency
public int getFrequency(int index)
-
getBins
public float[] getBins()
-
getBin
public float getBin(int index)
-
getNumBins
public int getNumBins()
-
getMaximumY
public double getMaximumY()
-
getSumY
public double getSumY()
-
getSumFromRange
public double getSumFromRange(double low, double up)Parts of the range outside the bins are not considered.- Parameters:
low-up-- Returns:
-
getHistogram
public Matrix getHistogram()
-
getMinimumX
public double getMinimumX()
-
getMaximumX
public double getMaximumX()
-
toString
public java.lang.String toString()
First row: bins, upper border. Sec row: frequencies Third: row cumulative fraction- Overrides:
toStringin classjava.lang.Object
-
getBinWidth
public double getBinWidth()
-
main
public static void main(java.lang.String[] args)
-
-