Package jsl.utilities.random
Interface SampleIfc
-
- All Known Subinterfaces:
RandomIfc,RVariableIfc,TwoStateMarkovChainIfc
- All Known Implementing Classes:
AbstractRVariable,AR1NormalRV,BernoulliRV,BetaRV,BinomialRV,ChiSquaredRV,ConstantRV,DEmpiricalRV,DPopulation,DUniformRV,EmpiricalRV,ExponentialRV,GammaRV,GeneralizedBetaRV,GeometricRV,Hyper2ExponentialRV,InverseCDFRV,JohnsonBRV,LaplaceRV,LogLogisticRV,LognormalRV,MetropolisHastings1D,MixtureRV,NegativeBinomialRV,NHPPTimeBtwEventRV,NormalRV,PearsonType5RV,PearsonType6RV,PoissonRV,RandomVariable,ShiftedGeometricRV,ShiftedRV,StudentTRV,TriangularRV,TruncatedRV,TwoStateMarkovChain,UniformRV,VConstantRV,WeibullRV
public interface SampleIfc
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description doublesample()default voidsample(double[] values)Fills the supplied array with randomly generated valuesdefault double[]sample(int sampleSize)Generates a random generate of the give size
-
-
-
Method Detail
-
sample
double sample()
- Returns:
- generates a random value
-
sample
default double[] sample(int sampleSize)
Generates a random generate of the give size- Parameters:
sampleSize- the amount to fill- Returns:
- A array holding the generate
-
sample
default void sample(double[] values)
Fills the supplied array with randomly generated values- Parameters:
values- the array to fill
-
-