
org.opencompare.hac.dendrogram.ObservationNode Maven / Gradle / Ivy
/*
* This file is licensed to You under the "Simplified BSD License".
* You may not use this software except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.opensource.org/licenses/bsd-license.php
*
* See the COPYRIGHT file distributed with this work for information
* regarding copyright ownership.
*/
package org.opencompare.hac.dendrogram;
/**
* An ObservationNode represents a leaf node in a Dendrogram.
* It corresponds to a singleton cluster of one observation.
*
* @author [email protected]
*/
public final class ObservationNode implements DendrogramNode {
private final int observation;
public ObservationNode(final int observation) {
this.observation = observation;
}
public final DendrogramNode getLeft() {
return null;
}
public final DendrogramNode getRight() {
return null;
}
public int getObservationCount() {
return 1;
}
public final int getObservation() {
return observation;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy