datastructs.DoubleVectorBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jstat Show documentation
Show all versions of jstat Show documentation
Java Library for Statistical Analysis.
The newest version!
package datastructs;
import datasets.VectorDouble;
public class DoubleVectorBuilder implements IRowBuilder {
@Override
public VectorDouble create(){
return new VectorDouble();
}
/**
* Create a row of type RowType
*/
@Override
public VectorDouble create(int n){
return new VectorDouble(n, 0.0);
}
/**
* Create a row of type RowType
*/
@Override
public VectorDouble create(T... vals){
return new VectorDouble((Double[])(vals));
}
}