Package jmri.jmrix.rps
Class Ash2_1Algorithm
java.lang.Object
jmri.jmrix.rps.AbstractCalculator
jmri.jmrix.rps.Ash2_1Algorithm
- All Implemented Interfaces:
Calculator
Implementation of 2.1th algorithm for reducing Readings
This algorithm was provided by Robert Ashenfelter based in part on the work of Ralph Bucher in his paper "Exact Solution for Three Dimensional Hyperbolic Positioning Algorithm and Synthesizable VHDL Model for Hardware Implementation".
Neither Ashenfelter nor Bucher provide any guarantee as to the intellectual property status of this algorithm. Use it at your own risk.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static classInternal class to handle return value. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int(package private) intstatic intstatic intstatic int(package private) double(package private) double(package private) double(package private) double -
Constructor Summary
ConstructorsConstructorDescriptionAsh2_1Algorithm(javax.vecmath.Point3d[] sensors, double vsound) Ash2_1Algorithm(javax.vecmath.Point3d[] sensors, double vsound, int offset) Ash2_1Algorithm(javax.vecmath.Point3d sensor1, javax.vecmath.Point3d sensor2, javax.vecmath.Point3d sensor3, double vsound) Ash2_1Algorithm(javax.vecmath.Point3d sensor1, javax.vecmath.Point3d sensor2, javax.vecmath.Point3d sensor3, javax.vecmath.Point3d sensor4, double vsound) -
Method Summary
Modifier and TypeMethodDescriptionSeed the conversion using an estimated positionconvert(Reading r, Measurement last) Seed the conversion using a last measurement(package private) Ash2_1Algorithm.RetValRPSpos(int nr, double[] Tr, double[] Xr, double[] Yr, double[] Zr, double Vs, double Xt, double Yt, double Zt) Methods inherited from class jmri.jmrix.rps.AbstractCalculator
prep, summarize
-
Field Details
-
Constructor Details
-
Ash2_1Algorithm
-
Ash2_1Algorithm
-
Ash2_1Algorithm
public Ash2_1Algorithm(javax.vecmath.Point3d sensor1, javax.vecmath.Point3d sensor2, javax.vecmath.Point3d sensor3, double vsound) -
Ash2_1Algorithm
public Ash2_1Algorithm(javax.vecmath.Point3d sensor1, javax.vecmath.Point3d sensor2, javax.vecmath.Point3d sensor3, javax.vecmath.Point3d sensor4, double vsound)
-
-
Method Details
-
convert
-
convert
Seed the conversion using an estimated position -
convert
Seed the conversion using a last measurement -
RPSpos
Ash2_1Algorithm.RetVal RPSpos(int nr, double[] Tr, double[] Xr, double[] Yr, double[] Zr, double Vs, double Xt, double Yt, double Zt)
-