public class ConstantHistogramInitializationScheme extends HistogramInitializationScheme
Constructor and Description |
---|
ConstantHistogramInitializationScheme(double valueToAssign) |
Modifier and Type | Method and Description |
---|---|
double |
determineInitialValue(ProductAttribute correspondingProductAttribute,
ConsumerAgentGroup associatedAgentGroup,
Configuration configuration)
Since every histogram is assigned the same (constant) value, the initial value
(given to the constructor) will be the value associated with this initialization scheme.
|
public ConstantHistogramInitializationScheme(double valueToAssign)
public double determineInitialValue(ProductAttribute correspondingProductAttribute, ConsumerAgentGroup associatedAgentGroup, Configuration configuration)
determineInitialValue
in class PerceptionInitializationScheme
correspondingProductAttribute
- The product (group) attribute the histogram is set forassociatedAgentGroup
- The ConsumerAgentGroup the agent for which the histogram is set is part ofconfiguration
- The configuration object for the simulation