jmri.jmrix.rps
Class InitialAlgorithm

java.lang.Object
  extended by 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.

Author:
Bob Jacobsen Copyright (C) 2006

Constructor Summary
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
 Measurement convert(Reading r)
           
 Measurement convert(Reading r, Measurement last)
          Seed the conversion using a last measurement
 Measurement convert(Reading r, Point3d guess)
          Seed the conversion using an estimated position
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InitialAlgorithm

public InitialAlgorithm(Point3d[] sensors,
                        double vsound)

InitialAlgorithm

public InitialAlgorithm(Point3d sensor1,
                        Point3d sensor2,
                        Point3d sensor3,
                        double vsound)

InitialAlgorithm

public InitialAlgorithm(Point3d sensor1,
                        Point3d sensor2,
                        Point3d sensor3,
                        Point3d sensor4,
                        double vsound)
Method Detail

convert

public Measurement convert(Reading r)
Specified by:
convert in interface Calculator

convert

public Measurement convert(Reading r,
                           Point3d guess)
Seed the conversion using an estimated position

Specified by:
convert in interface Calculator

convert

public Measurement convert(Reading r,
                           Measurement last)
Seed the conversion using a last measurement

Specified by:
convert in interface Calculator


Copyright © 1997 - 2011 JMRI Community.
JMRI, DecoderPro, PanelPro, SoundPro, DispatcherPro and associated logos are our trademarks.

Additional information on copyright, trademarks and licenses is linked here.
Site hosted by: Get JMRI Model Railroad Interface at SourceForge.net. Fast, secure and Free Open Source software downloads