Package com.macrofocus.molap.subset
Class GenedataDistributionStrategy<Row,Column,Value>
- java.lang.Object
-
- com.macrofocus.molap.subset.GenedataDistributionStrategy<Row,Column,Value>
-
- All Implemented Interfaces:
DistributionDimension.DistributionStrategy<Value,java.lang.Integer>
public class GenedataDistributionStrategy<Row,Column,Value> extends java.lang.Object implements DistributionDimension.DistributionStrategy<Value,java.lang.Integer>
Created by luc on 13/07/16.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GenedataDistributionStrategy.Range
-
Constructor Summary
Constructors Modifier Constructor Description protected
GenedataDistributionStrategy()
GenedataDistributionStrategy(java.lang.Number[] sortedValues)
GenedataDistributionStrategy(java.lang.Number[] sortedValues, double centralValue, double binWidth)
GenedataDistributionStrategy(java.lang.Number[] sortedValues, int count)
GenedataDistributionStrategy(java.lang.Number[] sortedValues, int count, double coef)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBin(double v)
double
getBinEndValue(java.lang.Integer index)
double
getBinStartValue(java.lang.Integer index)
double
getBinWidth()
double
getCentralValue()
int
getCountAtBin(int index)
double
getLowerResidual(int i)
int
getMaxCount()
int
getMaxPopulation()
double
getMaxValue()
int
getMinNonZeroPopulation()
int
getMinPopulation()
double
getMinValue()
int
getNumberOfBins()
GenedataDistributionStrategy.Range
getRange()
int
getTotalPopulation()
double
getUpperResidual(int i)
boolean
isBinnable(Value value)
java.lang.String
toString()
static int[]
trim(int[] vector, int len)
java.lang.Integer
valueToBin(Value value)
-
-
-
Constructor Detail
-
GenedataDistributionStrategy
protected GenedataDistributionStrategy()
-
GenedataDistributionStrategy
public GenedataDistributionStrategy(java.lang.Number[] sortedValues)
-
GenedataDistributionStrategy
public GenedataDistributionStrategy(java.lang.Number[] sortedValues, int count)
-
GenedataDistributionStrategy
public GenedataDistributionStrategy(java.lang.Number[] sortedValues, int count, double coef)
-
GenedataDistributionStrategy
public GenedataDistributionStrategy(java.lang.Number[] sortedValues, double centralValue, double binWidth)
-
-
Method Detail
-
getNumberOfBins
public int getNumberOfBins()
-
getCountAtBin
public int getCountAtBin(int index)
-
getBinStartValue
public double getBinStartValue(java.lang.Integer index)
- Specified by:
getBinStartValue
in interfaceDistributionDimension.DistributionStrategy<Row,Column>
-
getBinEndValue
public double getBinEndValue(java.lang.Integer index)
- Specified by:
getBinEndValue
in interfaceDistributionDimension.DistributionStrategy<Row,Column>
-
getMinValue
public double getMinValue()
- Specified by:
getMinValue
in interfaceDistributionDimension.DistributionStrategy<Row,Column>
-
getMaxValue
public double getMaxValue()
- Specified by:
getMaxValue
in interfaceDistributionDimension.DistributionStrategy<Row,Column>
-
getMaxCount
public int getMaxCount()
-
isBinnable
public boolean isBinnable(Value value)
- Specified by:
isBinnable
in interfaceDistributionDimension.DistributionStrategy<Row,Column>
-
valueToBin
public java.lang.Integer valueToBin(Value value)
- Specified by:
valueToBin
in interfaceDistributionDimension.DistributionStrategy<Row,Column>
-
getBin
public int getBin(double v)
-
getBinWidth
public double getBinWidth()
-
getCentralValue
public double getCentralValue()
-
getLowerResidual
public double getLowerResidual(int i)
-
getMaxPopulation
public int getMaxPopulation()
-
getMinNonZeroPopulation
public int getMinNonZeroPopulation()
-
getMinPopulation
public int getMinPopulation()
-
getRange
public GenedataDistributionStrategy.Range getRange()
-
getTotalPopulation
public int getTotalPopulation()
-
getUpperResidual
public double getUpperResidual(int i)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
trim
public static int[] trim(int[] vector, int len)
-
-