Closed ViaSacra closed 6 years ago
Thank you in advance, the project has successfully earned. I created pom.xml and added the following:
<dependencies>
<dependency>
<groupId>com.github.haifengl</groupId>
<artifactId>smile-core</artifactId>
<version>1.5.1</version>
</dependency>
<dependency>
<groupId>com.github.haifengl</groupId>
<artifactId>smile-interpolation</artifactId>
<version>1.5.1</version>
</dependency>
<dependency>
<groupId>com.github.fommil.netlib</groupId>
<artifactId>all</artifactId>
<version>1.1.2</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.0.13</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.8.0-beta1</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-jdk14</artifactId>
<version>1.8.0-beta1</version>
</dependency>
</dependencies>
So it is okay with netlib but fails with JMatrix? BTW, what's ru.msu.cmc.sp
in your error trace?
at ru.msu.cmc.sp.kriging.JMatrix.get(JMatrix.java:137)
at ru.msu.cmc.sp.kriging.LU.solve(LU.java:136)
at ru.msu.cmc.sp.kriging.LU.solve(LU.java:110)
at ru.msu.cmc.sp.kriging.KrigingInterpolation.<init>(Kriging.java:63)
at ru.msu.cmc.sp.kriging.KrigingInterpolation.<init>(Kriging.java:19)
at ru.msu.cmc.sp.kriging.KrigingInterpolation.test(KrigingTest.java:131)
This is a package.
The problem was in bad jar, so LAPACK produced incorrect calculations and the matrix was flying out of bounds. After creating Maven and connecting libs through it all works correctly.
The only warning that is present is:
INFO Factory - netlib module is not available in the classpath. Pure Java matrix library will be employed.
Can this affect the correctness of the calculations and how can I fix it?
What's your environment? OS? JDK?
Hello, I'm trying to run KrigingInterpolation, but when I create a class object, it always flies out of the array in the get () method. To start, I use the data from the test script. The error occurs here, in the solve () method:
LAPACK returns an array of piv [] with values and get (), but these values exceed the scope of the get () array
Here is the error:
Here is the test I use:
For correct work LAPACK I did:
Help please, I really need KrigingInterpolation!