package org.eggermont.hm.cluster;

import cern.colt.matrix.DoubleFactory1D;
import cern.colt.matrix.DoubleMatrix1D;
import cern.colt.matrix.DoubleMatrix2D;

public class ClusterFactory {

    private final DoubleMatrix2D x;

    private final DoubleMatrix1D blocks;

    private final DoubleMatrix1D vMin;

    private final DoubleMatrix1D vMax;

    private final int ndof;

    public ClusterFactory(int d, int nidx, int ndof) {
        this.ndof = ndof;
        this.blocks = DoubleFactory1D.dense.make(d * nidx);
        this.x = blocks.like2D(nidx, d);
        this.vMin = DoubleFactory1D.dense.make(d);
        this.vMax = DoubleFactory1D.dense.make(d);
    }

}
