本文整理了Java中org.ujmp.core.Matrix.getEuklideanValue()
方法的一些代码示例,展示了Matrix.getEuklideanValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.getEuklideanValue()
方法的具体详情如下:
包路径:org.ujmp.core.Matrix
类名称:Matrix
方法名:getEuklideanValue
暂无
代码示例来源:origin: jdmp/java-data-mining-package
public final double getRMSE() {
Matrix m = getRMSEMatrix();
if (m == null) {
return Double.NaN;
} else {
return m.getEuklideanValue();
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
public final double getStdValue() {
return std(Ret.NEW, Matrix.ALL, true, true).getEuklideanValue();
}
代码示例来源:origin: ujmp/universal-java-matrix-package
long missingCount = (long) x.countMissing(Ret.NEW, Matrix.ALL).getEuklideanValue();
double percent = ((int) Math.round((missingCount * 1000.0 / valueCount))) / 10.0;
System.out.println("missing values: " + missingCount + " (" + percent + "%)");
代码示例来源:origin: jdmp/java-data-mining-package
double rmse = sample.getAsMatrix(RMSE).getEuklideanValue();
error += Math.pow(rmse, 2.0);
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public final void testInvSPDRandSmall() throws Exception {
Matrix m1 = createMatrixWithAnnotation(10, 10);
BenchmarkUtil.randPositiveDefinite(System.currentTimeMillis(), 0, 0, m1);
Matrix m2 = m1.invSPD();
Matrix m3 = m1.mtimes(m2);
Matrix eye = DenseDoubleMatrix2D.Factory.eye(m1.getRowCount(), m1.getColumnCount());
assertEquals(getLabel(), 0.0, eye.minus(m3).getEuklideanValue(), TOLERANCE);
if (m1 instanceof Erasable) {
((Erasable) m1).erase();
}
if (m2 instanceof Erasable) {
((Erasable) m2).erase();
}
if (m3 instanceof Erasable) {
((Erasable) m3).erase();
}
if (eye instanceof Erasable) {
((Erasable) eye).erase();
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public final void testInvSPDRandLarge() throws Exception {
if (!isTestLarge()) {
return;
}
Matrix m1 = createMatrixWithAnnotation(128, 128);
BenchmarkUtil.randPositiveDefinite(System.currentTimeMillis(), 0, 0, m1);
Matrix m2 = m1.invSPD();
Matrix m3 = m1.mtimes(m2);
Matrix eye = DenseDoubleMatrix2D.Factory.eye(m1.getRowCount(), m1.getColumnCount());
assertEquals(getLabel(), 0.0, eye.minus(m3).getEuklideanValue(), TOLERANCE);
if (m1 instanceof Erasable) {
((Erasable) m1).erase();
}
if (m2 instanceof Erasable) {
((Erasable) m2).erase();
}
if (m3 instanceof Erasable) {
((Erasable) m3).erase();
}
if (eye instanceof Erasable) {
((Erasable) eye).erase();
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public final void testInvRandSmall() throws Exception {
Matrix m1 = createMatrixWithAnnotation(10, 10);
do {
m1.randn(Ret.ORIG);
} while (m1.isSingular());
Matrix m2 = m1.inv();
Matrix m3 = m1.mtimes(m2);
Matrix eye = DenseDoubleMatrix2D.Factory.eye(m1.getRowCount(), m1.getColumnCount());
assertEquals(getLabel(), 0.0, eye.minus(m3).getEuklideanValue(), TOLERANCE);
if (m1 instanceof Erasable) {
((Erasable) m1).erase();
}
if (m2 instanceof Erasable) {
((Erasable) m2).erase();
}
if (m3 instanceof Erasable) {
((Erasable) m3).erase();
}
if (eye instanceof Erasable) {
((Erasable) eye).erase();
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public final void testInvRandLarge() throws Exception {
if (!isTestLarge()) {
return;
}
Matrix m1 = createMatrixWithAnnotation(128, 128);
do {
m1.randn(Ret.ORIG);
} while (m1.isSingular());
Matrix m2 = m1.inv();
Matrix m3 = m1.mtimes(m2);
Matrix eye = DenseDoubleMatrix2D.Factory.eye(m1.getRowCount(), m1.getColumnCount());
assertEquals(getLabel(), 0.0, eye.minus(m3).getEuklideanValue(), TOLERANCE);
if (m1 instanceof Erasable) {
((Erasable) m1).erase();
}
if (m2 instanceof Erasable) {
((Erasable) m2).erase();
}
if (m3 instanceof Erasable) {
((Erasable) m3).erase();
}
if (eye instanceof Erasable) {
((Erasable) eye).erase();
}
}
内容来源于网络,如有侵权,请联系作者删除!