Merge remote-tracking branch 'origin/master'

pull/1/head
lidapeng 5 years ago
commit 42f49b3b4d

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4" />

@ -6,6 +6,7 @@
<sourceOutputDir name="target/generated-sources/annotations" />
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
<outputRelativeToContentRoot value="true" />
<module name="ImageMarket" />
<module name="myBrain" />
</profile>
</annotationProcessing>

@ -1,6 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="MavenProjectsManager">
<option name="originalFiles">
<list>

@ -125,8 +125,8 @@ public class MatrixOperation {
}
public static double getNormCos(Matrix matrix1, Matrix matrix2) throws Exception {//求两个向量之间的余弦
double inner = MatrixOperation.innerProduct(matrix1, matrix2);
double mulNorm = ArithUtil.mul(MatrixOperation.getNorm(matrix1), MatrixOperation.getNorm(matrix2));
double inner = innerProduct(matrix1, matrix2);
double mulNorm = ArithUtil.mul(getNorm(matrix1), getNorm(matrix2));
return ArithUtil.div(inner, mulNorm);
}

Loading…
Cancel
Save