Package com.macrofocus.molap.subset
Class FixedDistributionStrategy<Row,Column,Value>
- java.lang.Object
-
- com.macrofocus.molap.subset.FixedDistributionStrategy<Row,Column,Value>
-
- All Implemented Interfaces:
DistributionDimension.DistributionStrategy<Value,java.lang.Integer>
public class FixedDistributionStrategy<Row,Column,Value> extends java.lang.Object implements DistributionDimension.DistributionStrategy<Value,java.lang.Integer>
Created by luc on 01/07/16.
-
-
Constructor Summary
Constructors Constructor Description FixedDistributionStrategy(int numberOfBins, double minValue, double maxValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getBinEndValue(java.lang.Integer bin)
double
getBinStartValue(java.lang.Integer bin)
double
getMaxValue()
double
getMinValue()
boolean
isBinnable(Value value)
java.lang.Integer
valueToBin(Value value)
-
-
-
Method Detail
-
getBinStartValue
public double getBinStartValue(java.lang.Integer bin)
- Specified by:
getBinStartValue
in interfaceDistributionDimension.DistributionStrategy<Row,Column>
-
getBinEndValue
public double getBinEndValue(java.lang.Integer bin)
- 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>
-
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>
-
-