Class NormalDistributionDataFeed
- java.lang.Object
-
- io.patriot_framework.generator.dataFeed.NormalDistributionDataFeed
-
-
Constructor Summary
Constructors Constructor Description NormalDistributionDataFeed(double mu, double sigma)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLabel()
Returns label for DataFeedData
getNextValue(Object... params)
Generates next value for Normal Distribution.Data
getPreviousValue()
Returns last generated value from DataFeed.void
setLabel(String label)
Sets label for DataFeed
-
-
-
Method Detail
-
getNextValue
public Data getNextValue(Object... params)
Generates next value for Normal Distribution. If method is called with 0 params, then it generates random variate from normal distribution. If method is called with 1 or more arguments, distribution function evaluated at x = param[0]- Specified by:
getNextValue
in interfaceDataFeed
- Parameters:
params
- first param represents x value at which the distribution function is evaluated- Returns:
- next evaluated value
-
getPreviousValue
public Data getPreviousValue()
Description copied from interface:DataFeed
Returns last generated value from DataFeed. Important for easy comparison between new and previous values.- Specified by:
getPreviousValue
in interfaceDataFeed
- Returns:
- last generated value
-
setLabel
public void setLabel(String label)
Description copied from interface:DataFeed
Sets label for DataFeed
-
-