public final class Gram extends water.Iced<Gram>
Modifier and Type | Class and Description |
---|---|
static class |
Gram.Cholesky |
static class |
Gram.GramTask
Task to compute gram matrix normalized by the number of observations (not counting rows with NAs).
|
static class |
Gram.InPlaceCholesky |
static class |
Gram.NonSPDMatrixException |
Modifier and Type | Field and Description |
---|---|
double |
_diagAdded |
int |
_diagN |
double[][] |
_xx |
Constructor and Description |
---|
Gram() |
Gram(double[][] xx) |
Gram(Gram g) |
Gram(int N,
int diag,
int dense,
int sparse,
boolean hasIntercept) |
Modifier and Type | Method and Description |
---|---|
void |
add(Gram grm) |
void |
addDiag(double d) |
void |
addDiag(double[] ds) |
void |
addDiag(double d,
boolean add2Intercept) |
void |
addRow(DataInfo.Row row,
double w) |
void |
addRowDense(DataInfo.Row row,
double w) |
void |
addRowSparse(DataInfo.Row r,
double w) |
Gram.Cholesky |
cholesky(Gram.Cholesky chol) |
Gram.Cholesky |
cholesky(Gram.Cholesky chol,
boolean parallelize,
java.lang.String id)
Compute the Cholesky decomposition.
|
double |
diagAvg() |
double |
diagMin() |
void |
dropIntercept() |
int |
fullN() |
double |
get(int i,
int j) |
double[][] |
getDenseXX() |
double[][] |
getXX() |
boolean |
hasNaNsOrInfs() |
void |
mul(double x) |
double[] |
mul(double[] x) |
void |
mul(double[] x,
double[] res) |
double |
sparseness() |
java.lang.String |
toString() |
public double[][] _xx
public final int _diagN
public double _diagAdded
public Gram()
public Gram(int N, int diag, int dense, int sparse, boolean hasIntercept)
public Gram(Gram g)
public Gram(double[][] xx)
public void dropIntercept()
public final int fullN()
public void addDiag(double[] ds)
public double get(int i, int j)
public void addDiag(double d)
public void addDiag(double d, boolean add2Intercept)
public double sparseness()
public double diagAvg()
public double diagMin()
public java.lang.String toString()
toString
in class java.lang.Object
public Gram.Cholesky cholesky(Gram.Cholesky chol)
public Gram.Cholesky cholesky(Gram.Cholesky chol, boolean parallelize, java.lang.String id)
chol
- public double[][] getXX()
public double[][] getDenseXX()
public void add(Gram grm)
public final boolean hasNaNsOrInfs()
public final void addRowSparse(DataInfo.Row r, double w)
public final void addRow(DataInfo.Row row, double w)
public final void addRowDense(DataInfo.Row row, double w)
public void mul(double x)
public double[] mul(double[] x)
public void mul(double[] x, double[] res)