public class ProductAttributePerceptionHistogram extends Histogram implements ProductAttributePerceptionScheme
Constructor and Description |
---|
ProductAttributePerceptionHistogram(double lambda,
int noBins,
double minValue,
double maxValue,
ProductAttribute associatedProductAttribute,
HistogramInitializationScheme histogramInitializationScheme,
ConsumerAgentGroup associatedAgentGroup,
Configuration configuration)
A ProductAttributePerceptionHistogram models the perception of a product attribute with the use of a histogram (as data structure).
|
Modifier and Type | Method and Description |
---|---|
double |
calculateProductAttributePerception(double systemTime)
Method to calculate the perception of a product attribute at simulation time system time.
|
ProductAttribute |
getAssociatedProductAttribute() |
java.util.Map<java.lang.Integer,HistogramBin> |
getBinValues() |
void |
modifyValue(double productAttributePerceptionValue,
double weight,
double timeStamp)
method to modify the value of the histogram in adding the productAttributePerceptionValue to the histogram in the corresponding bin with weight weight at simulation time timeStamp
|
public ProductAttributePerceptionHistogram(double lambda, int noBins, double minValue, double maxValue, ProductAttribute associatedProductAttribute, HistogramInitializationScheme histogramInitializationScheme, ConsumerAgentGroup associatedAgentGroup, Configuration configuration)
lambda
- The lambda parameter associated with the histogramnoBins
- The number of (equidistant) bins in the histogramminValue
- The lower bound of values in the histogrammaxValue
- The upper bound of values in the histogramassociatedProductAttribute
- The ProductAttribute associated with this histogramhistogramInitializationScheme
- The HistogramInitializationScheme used to provide the initial value of the histogramassociatedAgentGroup
- The ConsumerAgentGroup of the ConsumerAgent using this histogramconfiguration
- The configuration of the simulationpublic java.util.Map<java.lang.Integer,HistogramBin> getBinValues()
public ProductAttribute getAssociatedProductAttribute()
public void modifyValue(double productAttributePerceptionValue, double weight, double timeStamp)
modifyValue
in interface ProductAttributePerceptionScheme
productAttributePerceptionValue
- The numerical value associated with the perception of the product attributeweight
- The weight associated with the product perceptiontimeStamp
- The simulation time the productAttributePerceptionValue is addedpublic double calculateProductAttributePerception(double systemTime)
calculateProductAttributePerception
in interface ProductAttributePerceptionScheme
systemTime
- The time the value is calculated at