Class Histogram
- java.lang.Object
-
- com.actelion.research.calc.histogram.Histogram
-
public class Histogram extends java.lang.Object
HistogramCopyright: 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 float
getBin(int index)
int
getBinIndex(double v)
float[]
getBins()
double
getBinWidth()
int[]
getFrequencies()
int
getFrequency(int index)
Matrix
getHistogram()
double
getMaximumX()
double
getMaximumY()
double
getMinimumX()
int
getNumBins()
double
getSumFromRange(double low, double up)
Parts of the range outside the bins are not considered.double
getSumY()
void
initialize(double[] arrRaw, double min, double max, int bins)
static void
main(java.lang.String[] args)
java.lang.String
toString()
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:
toString
in classjava.lang.Object
-
getBinWidth
public double getBinWidth()
-
main
public static void main(java.lang.String[] args)
-
-