Fix overflow count
This commit is contained in:
parent
a852326e6e
commit
6d6d0a72ee
@ -19,6 +19,7 @@ println "Loading config file from $cfgPath"
|
||||
//Global.instance().pluginManager().loadPlugin("inr.numass:numass")
|
||||
println "Starting Grind shell"
|
||||
|
||||
if(cfgPath) {
|
||||
try {
|
||||
new GrindShell().launch {
|
||||
GrindWorkspaceBuilder numass = new GrindWorkspaceBuilder()
|
||||
@ -31,3 +32,6 @@ try {
|
||||
} finally {
|
||||
Global.terminate();
|
||||
}
|
||||
} else{
|
||||
println "No configuration path. Provide path via --config option"
|
||||
}
|
@ -97,11 +97,11 @@ public class PrepareDataAction extends OneToOneAction<NumassData, Table> {
|
||||
|
||||
double correctionFactor = corrections.stream()
|
||||
.mapToDouble(cor -> cor.corr(point))
|
||||
.reduce((d1, d2) -> d1 * d2).getAsDouble();
|
||||
.reduce((d1, d2) -> d1 * d2).orElse(1);
|
||||
double relativeCorrectionError = Math.sqrt(
|
||||
corrections.stream()
|
||||
.mapToDouble(cor -> cor.relativeErr(point))
|
||||
.reduce((d1, d2) -> d1 * d1 + d2 * d2).getAsDouble()
|
||||
.reduce((d1, d2) -> d1 * d1 + d2 * d2).orElse(0)
|
||||
);
|
||||
|
||||
double cr = wind / point.getLength() * correctionFactor;
|
||||
|
Loading…
Reference in New Issue
Block a user