de.unihalle.informatik.MiToBo.math.distributions.interfaces
Interface IndependentSamplingDistribution<T>

Type Parameters:
T - type of the sample / random variable
All Known Implementing Classes:
AbstractMultiStateTransitionDistributionIndep, MultiStateDistributionIndepGaussians, MultiStateLinTransDistributionIndepGaussians

public interface IndependentSamplingDistribution<T>

Interface for densities with independent variables, where components of a sample can be drawn independently. Don't forget to give your implementation the possibility to specify a Random generator if you want to reproduce results. The drawSample method lacks this possibility for time efficiency reasons.

Author:
Oliver Gress

Method Summary
 T drawSample(int i, T x)
          Generate a new sample from this density by drawing only one independent variable for a given realization x.
 

Method Detail

drawSample

T drawSample(int i,
             T x)
Generate a new sample from this density by drawing only one independent variable for a given realization x. This method should create a new object.

Parameters:
i - sample a new realization of the i-th element in x
x - realization of a random vector or finite set
Returns:
new sample object