Example usage for org.apache.commons.math3.linear RealVector hashCode

List of usage examples for org.apache.commons.math3.linear RealVector hashCode

Introduction

In this page you can find the example usage for org.apache.commons.math3.linear RealVector hashCode.

Prototype

@Override
public int hashCode() throws MathUnsupportedOperationException 

Source Link

Document

This method must be overriden by concrete subclasses of RealVector (current implementation throws an exception).

Usage

From source file:com.cloudera.oryx.kmeans.common.Centers.java

@Override
public int hashCode() {
    int hc = 0;//from  w w w .  ja v a  2  s.c om
    for (RealVector center : centers) {
        hc += center.hashCode();
    }
    return hc;
}