public class LinearBinningStrategy extends Object implements BinningStrategy
| Constructor and Description |
|---|
LinearBinningStrategy() |
| Modifier and Type | Method and Description |
|---|---|
int |
getBinIndex(double covariate) |
int |
getLowerBound(int binindex)
Get the lower bound on the covariate in the given bin.
|
int |
getMidpoint(int binIndex)
Get the midPoint on the covariate in the given bin.
|
String |
getName()
Return a short name for this strategy.
|
protected int |
getTheIndex(int sumTotal) |
int |
getUpperBound(int binindex)
Get the upper bound on the covariate in the given bin (exclusive).
|
protected final int getTheIndex(int sumTotal)
public int getBinIndex(double covariate)
getBinIndex in interface BinningStrategypublic int getLowerBound(int binindex)
BinningStrategygetLowerBound in interface BinningStrategypublic int getUpperBound(int binindex)
BinningStrategygetUpperBound in interface BinningStrategypublic int getMidpoint(int binIndex)
BinningStrategygetMidpoint in interface BinningStrategypublic String getName()
BinningStrategygetName in interface BinningStrategyCopyright © 2017 Campagne Laboratory. All rights reserved.