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
@ALDMetaInfo(export=ALLOWED)
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. |
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 xx
- realization of a random vector or finite set
- Returns:
- new sample object
Copyright © 2010–2015 Martin Luther University Halle-Wittenberg. All rights reserved.