Package samer.maths.random
Class BinaryVec
- java.lang.Object
-
- samer.maths.random.BaseRandom
-
- samer.maths.random.BinaryVec
-
- All Implemented Interfaces:
- Generator
public class BinaryVec extends BaseRandom
-
-
Field Summary
-
Fields inherited from class samer.maths.random.BaseRandom
rnd
-
-
Constructor Summary
Constructors Constructor and Description BinaryVec(int n, double pp)
BinaryVec(VVector probs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
dispose()
int
getSize()
double
next()
void
next(double[] x)
-
-
-
Constructor Detail
-
BinaryVec
public BinaryVec(int n, double pp)
-
BinaryVec
public BinaryVec(VVector probs)
-
-
Method Detail
-
getSize
public int getSize()
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceGenerator
- Overrides:
dispose
in classBaseRandom
-
next
public double next()
-
next
public void next(double[] x)
- Specified by:
next
in interfaceGenerator
- Overrides:
next
in classBaseRandom
-
-