Sample@Simulations

From COSSAN Wiki
Jump to: navigation, search

Sample method for the sub-classes of the @Simulations class.
The method generates samples (realizations) and returns a @Samples object.

Warning.png StochasticProcess
It is not possible to use any variance reduction techniques such as LatinHyperCube sampling if a StochasticProcess is defined in the input object



Input Arguments

The input parameters have to be passed as pairs Property Name / Property Value

Property Names

Value
Type
required
Default value
description
Nsamples integer no Samples defined in the Simulation object Number of samples
Xrvs RandomVariableSet object no if the Xinput is provided
RandomVariableSet object
Xinput Input Object
  • no if the Xrvs is provided

Input Object



Output

The method return a @Samples object.

Usage

Xo=Xsimulation.sample('Nsamples',100,'Xinput',InputObject)

where Xsimulation is an object that belongs to the superclass Simulations and Xo is a Samples object

See Also