|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlejos.util.Integration
public class Integration
Integrate sensor measurement over time, e.g. to calculate velocity from acceleration or angle from angular velocity.
| Constructor Summary | |
|---|---|
Integration(double initialValue,
double reading)
Create the integration object with the initial value for the integral value and the initial reading. |
|
| Method Summary | |
|---|---|
double |
addReading(double reading)
Add a new reading and return the current integral |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Integration(double initialValue,
double reading)
initialValue - the initial value for the integralreading - the initial reading| Method Detail |
|---|
public double addReading(double reading)
reading - the reading as a double
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||