Class InitialAlgorithm

java.lang.Object
jmri.jmrix.rps.InitialAlgorithm
All Implemented Interfaces:
Calculator

public class InitialAlgorithm
extends Object
implements Calculator
Implementation of 1st 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.

  • Field Summary

    Fields 
    Modifier and Type Field Description
    (package private) int ngps  
    (package private) double r0  
    (package private) double ri  
    (package private) double rj  
    (package private) double rk  
    (package private) double rl  
    (package private) Point3d sensor1  
    (package private) Point3d sensor2  
    (package private) Point3d sensor3  
    (package private) Point3d sensor4  
    (package private) double vsound  
    (package private) double x
    The following is the original algorithm, as provided by Ash as a C routine
    (package private) double x0  
    (package private) double xi  
    (package private) double xj  
    (package private) double xk  
    (package private) double xl  
    (package private) double y
    The following is the original algorithm, as provided by Ash as a C routine
    (package private) double y0  
    (package private) double yi  
    (package private) double yj  
    (package private) double yk  
    (package private) double yl  
    (package private) double z
    The following is the original algorithm, as provided by Ash as a C routine
    (package private) double z0  
    (package private) double zi  
    (package private) double zj  
    (package private) double zk  
    (package private) double zl  
  • Constructor Summary

    Constructors 
    Constructor Description
    InitialAlgorithm​(Point3d[] sensors, double vsound)  
    InitialAlgorithm​(Point3d sensor1, Point3d sensor2, Point3d sensor3, double vsound)  
    InitialAlgorithm​(Point3d sensor1, Point3d sensor2, Point3d sensor3, Point3d sensor4, double vsound)  
  • Method Summary

    Modifier and Type Method Description
    Measurement convert​(Reading r)  
    Measurement convert​(Reading r, Point3d guess)
    Seed the conversion using an estimated position
    Measurement convert​(Reading r, Measurement last)
    Seed the conversion using a last measurement
    (package private) boolean gps()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait