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 anumber
of points each) of a set ofReliabilityFunction
s under a givenAspect
.protected Samples
getSamples
(ReliabilityFunction reliabilityFunction, Aspect aspect, double lower, double upper, int number) Returnsnumber
Samples
of aReliabilityFunction
under a givenAspect
, ranging from thelower
to theupper
bound.
-
Constructor Details
-
SampleCollector
public SampleCollector()
-
-
Method Details
-
getSamples
public Map<String,Samples> getSamples(Map<String, ReliabilityFunction> reliabilityFunctions, Aspect aspect, int number) Returns theSamples
(with anumber
of points each) of a set ofReliabilityFunction
s 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) Returnsnumber
Samples
of aReliabilityFunction
under a givenAspect
, ranging from thelower
to theupper
bound.- 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
-