From 248cd5f64aee551f20386e76d9892c2db46609c5 Mon Sep 17 00:00:00 2001 From: darksnake Date: Wed, 14 Jun 2017 18:19:03 +0300 Subject: [PATCH] Add serialization to named vectors and matrices --- .../src/main/java/inr/numass/data/SpectrumInformation.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/numass-main/src/main/java/inr/numass/data/SpectrumInformation.java b/numass-main/src/main/java/inr/numass/data/SpectrumInformation.java index 675fa95a..cc2ee9c5 100644 --- a/numass-main/src/main/java/inr/numass/data/SpectrumInformation.java +++ b/numass-main/src/main/java/inr/numass/data/SpectrumInformation.java @@ -45,7 +45,7 @@ public class SpectrumInformation { } NamedMatrix info = this.getInformationMatrix(set, data, names); RealMatrix cov = inverse(info.getMatrix()); - return new NamedMatrix(cov, names); + return new NamedMatrix(names, cov); } /** @@ -76,7 +76,7 @@ public class SpectrumInformation { res = res.add(getPointInfoMatrix(set, reader.getX(dp).doubleValue(), reader.getTime(dp), names).getMatrix()); } - return new NamedMatrix(res, names); + return new NamedMatrix(names, res); } // формула правильная! @@ -106,7 +106,7 @@ public class SpectrumInformation { } } - return new NamedMatrix(res, names); + return new NamedMatrix(names, res); }