|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.math.PersistentObject
org.apache.mahout.math.matrix.DoubleFactory1D
@Deprecated public class DoubleFactory1D
Field Summary | |
---|---|
static DoubleFactory1D |
dense
Deprecated. A factory producing dense matrices. |
Constructor Summary | |
---|---|
protected |
DoubleFactory1D()
Deprecated. Makes this class non instantiable, but still let's others inherit from it. |
Method Summary | |
---|---|
DoubleMatrix1D |
append(DoubleMatrix1D A,
DoubleMatrix1D B)
Deprecated. C = A||B; Constructs a new matrix which is the concatenation of two other matrices. |
DoubleMatrix1D |
ascending(int size)
Deprecated. Constructs a matrix with cells having ascending values. |
DoubleMatrix1D |
descending(int size)
Deprecated. Constructs a matrix with cells having descending values. |
DoubleMatrix1D |
make(org.apache.mahout.math.list.AbstractDoubleList values)
Deprecated. Constructs a matrix from the values of the given list. |
DoubleMatrix1D |
make(double[] values)
Deprecated. Constructs a matrix with the given cell values. |
DoubleMatrix1D |
make(DoubleMatrix1D[] parts)
Deprecated. Constructs a matrix which is the concatenation of all given parts. |
DoubleMatrix1D |
make(int size)
Deprecated. Constructs a matrix with the given shape, each cell initialized with zero. |
DoubleMatrix1D |
make(int size,
double initialValue)
Deprecated. Constructs a matrix with the given shape, each cell initialized with the given value. |
DoubleMatrix1D |
random(int size)
Deprecated. Constructs a matrix with uniformly distributed values in (0,1) (exclusive). |
DoubleMatrix1D |
repeat(DoubleMatrix1D A,
int repeat)
Deprecated. C = A||A||..||A; Constructs a new matrix which is concatenated repeat times. |
DoubleMatrix1D |
sample(int size,
double value,
double nonZeroFraction)
Deprecated. Constructs a randomly sampled matrix with the given shape. |
org.apache.mahout.math.list.DoubleArrayList |
toList(DoubleMatrix1D values)
Deprecated. Constructs a list from the given matrix. |
Methods inherited from class org.apache.mahout.math.PersistentObject |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final DoubleFactory1D dense
Constructor Detail |
---|
protected DoubleFactory1D()
Method Detail |
---|
public DoubleMatrix1D append(DoubleMatrix1D A, DoubleMatrix1D B)
public DoubleMatrix1D ascending(int size)
public DoubleMatrix1D descending(int size)
public DoubleMatrix1D make(double[] values)
values
- The values to be filled into the new matrix.public DoubleMatrix1D make(DoubleMatrix1D[] parts)
public DoubleMatrix1D make(int size)
public DoubleMatrix1D make(int size, double initialValue)
public DoubleMatrix1D make(org.apache.mahout.math.list.AbstractDoubleList values)
values
- The values to be filled into the new matrix.
public DoubleMatrix1D random(int size)
public DoubleMatrix1D repeat(DoubleMatrix1D A, int repeat)
0 1 repeat(3) --> 0 1 0 1 0 1
public DoubleMatrix1D sample(int size, double value, double nonZeroFraction)
java.lang.IllegalArgumentException
- if nonZeroFraction < 0 || nonZeroFraction > 1.RandomSampler
public org.apache.mahout.math.list.DoubleArrayList toList(DoubleMatrix1D values)
values
- The values to be filled into the new list.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |