Package samer.units
Class NoisyLinearSource
- java.lang.Object
-
- samer.tools.AnonymousTask
-
- samer.units.NoisyLinearSource
-
- All Implemented Interfaces:
- Task
public class NoisyLinearSource extends AnonymousTask
A class for generating random vectors according to a particular generative model. If the output is y, then y = Bx + e where x is a vector of indepedent identitically distributed random variables, e is another vector of iid random variables, and B is an arbitrary matrix. The elements of x are the 'sources' and are drawn from the random number generator rnd. The elements of e are the 'noise' and are drawn from a different generator, which defaults to Gaussian.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description VGenerator
noise
VGenerator
src
-
Constructor Summary
Constructors Constructor and Description NoisyLinearSource(int m, int n)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
dispose()
Matrix
getMixingMatrix()
VVector
output()
void
run()
-
Methods inherited from class samer.tools.AnonymousTask
starting, stopping
-
-
-
-
Field Detail
-
noise
public VGenerator noise
-
src
public VGenerator src
-
-