public class DecayAccumulator extends Object implements Accumulator
Modifier and Type | Field and Description |
---|---|
double |
lambda
This is the cost sensitivity parameter, the multiplier for the exponentiation of cost.
|
Constructor and Description |
---|
DecayAccumulator() |
Modifier and Type | Method and Description |
---|---|
void |
accumulate(double amount,
ResultSet current,
ResultSet accumulated) |
void |
finish() |
void |
setHalfLifeMinutes(int halfLifeMinutes)
This is a convenience function to set the cost sensitivity with more real-world values.
|
public double lambda
public void setHalfLifeMinutes(int halfLifeMinutes)
halfLifeMinutes
- public void accumulate(double amount, ResultSet current, ResultSet accumulated)
accumulate
in interface Accumulator
public void finish()
finish
in interface Accumulator
Copyright © 2018. All rights reserved.