Package lejos.utility
Class Integration
- java.lang.Object
-
- lejos.utility.Integration
-
public class Integration extends java.lang.ObjectIntegrate sensor measurement over time, e.g. to calculate velocity from acceleration or angle from angular velocity.- Author:
- Lawrie Griffiths
-
-
Constructor Summary
Constructors Constructor Description Integration(double initialValue, double reading)Create the integration object with the initial value for the integral value and the initial reading.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleaddReading(double reading)Add a new reading and return the current integral
-