Example usage for org.apache.commons.math3.linear AbstractRealMatrix getData

List of usage examples for org.apache.commons.math3.linear AbstractRealMatrix getData

Introduction

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

Prototype

public double[][] getData() 

Source Link

Usage

From source file:com.clust4j.metrics.pairwise.Pairwise.java

public static double[][] getDistance(AbstractRealMatrix a, GeometricallySeparable geo, boolean upperTriang,
        boolean partial) {
    return getDistance(a.getData(), geo, upperTriang, partial);
}

From source file:com.clust4j.metrics.pairwise.Pairwise.java

public static double[][] getSimilarity(AbstractRealMatrix a, GeometricallySeparable geo, boolean upperTriang,
        boolean partial) {
    return getSimilarity(a.getData(), geo, upperTriang, partial);
}

From source file:com.clust4j.utils.MatUtils.java

/**
 * Returns true if there are any NaN values in the matrix.
 * @throws IllegalArgumentException if there are no rows in the data
 * @param mat/* www .ja v  a2s  .  c o  m*/
 * @return true if the matrix contains NaN
 */
public static boolean containsNaN(final AbstractRealMatrix mat) {
    return containsNaN(mat.getData());
}

From source file:com.clust4j.utils.MatUtils.java

/**
 * Returns a matrix of complete cases, or rows which do not
 * contain NaN values./* w  w  w  .  ja v a2 s . com*/
 * @param data
 * @throws IllegalArgumentException if there are no rows in the matrix
 * @return the complete cases in the matrix
 */
public static double[][] completeCases(final AbstractRealMatrix data) {
    return completeCases(data.getData());
}