All Downloads are FREE. Search and download functionalities are using the official Maven repository.

datastructs.DoubleVectorBuilder Maven / Gradle / Ivy

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));
    }


}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy