org.rhwlab.BHC.LabeledFieldVector.java Source code

Java tutorial

Introduction

Here is the source code for org.rhwlab.BHC.LabeledFieldVector.java

Source

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package org.rhwlab.BHC;

import org.apache.commons.math3.FieldElement;
import org.apache.commons.math3.linear.ArrayFieldVector;

/**
 *
 * @author gevirl
 */
public class LabeledFieldVector extends ArrayFieldVector {
    public LabeledFieldVector(FieldElement[] elements, int label) {
        super(elements);
        this.label = label;
    }

    public int getLabel() {
        return label;
    }

    int label;
}