Package org.jreliability.gui.aspect
Class SampleCollector
java.lang.Object
org.jreliability.gui.aspect.SampleCollector
The
SampleCollector is used to generate the Samples of a set
of ReliabilityFunction under a given Aspect.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSamples(Map<String, ReliabilityFunction> reliabilityFunctions, Aspect aspect, int number) Returns theSamples(with anumberof points each) of a set ofReliabilityFunctions under a givenAspect.protected SamplesgetSamples(ReliabilityFunction reliabilityFunction, Aspect aspect, double lower, double upper, int number) ReturnsnumberSamplesof aReliabilityFunctionunder a givenAspect, ranging from thelowerto theupperbound.
-
Constructor Details
-
SampleCollector
public SampleCollector()
-
-
Method Details
-
getSamples
public Map<String,Samples> getSamples(Map<String, ReliabilityFunction> reliabilityFunctions, Aspect aspect, int number) Returns theSamples(with anumberof points each) of a set ofReliabilityFunctions under a givenAspect.- Parameters:
reliabilityFunctions- the reliabilityFunctionsaspect- the aspectnumber- the number of points per samples- Returns:
- the samples of a set of reliabilityFunctions under a given aspect
-
getSamples
protected Samples getSamples(ReliabilityFunction reliabilityFunction, Aspect aspect, double lower, double upper, int number) ReturnsnumberSamplesof aReliabilityFunctionunder a givenAspect, ranging from thelowerto theupperbound.- Parameters:
reliabilityFunction- the reliabilityFunctionaspect- the aspectlower- the lower boundupper- the upper boundnumber- the number of points per samples- Returns:
- the samples of a reliabilityFunction under an aspect ranging from lower to upper
-