File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/scala/com/massivedatascience/clusterer/ml/df/kernels Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -267,7 +267,7 @@ class SoftDTWKernel(
267267
268268 /** Soft minimum: -γ log(Σ exp(-x_i/γ)) */
269269 private def softMin (values : Double * ): Double = {
270- val filtered = values.filter(_ .isFinite)
270+ val filtered = values.filter(java.lang. Double .isFinite)
271271 if (filtered.isEmpty) Double .PositiveInfinity
272272 else {
273273 val maxVal = filtered.max
@@ -591,7 +591,7 @@ object DTWBarycenter {
591591 val dtw = Array .fill(n)(Array .fill(m)(Double .PositiveInfinity ))
592592 def d (i : Int , j : Int ): Double = { val diff = x(i) - y(j); diff * diff }
593593 def softMin (a : Double , b : Double , c : Double ): Double = {
594- val vals = Array (a, b, c).filter(_ .isFinite)
594+ val vals = Array (a, b, c).filter(java.lang. Double .isFinite)
595595 if (vals.isEmpty) Double .PositiveInfinity
596596 else {
597597 val maxV = vals.max
You can’t perform that action at this time.
0 commit comments