All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.micronova.math.LinearSegmentedCurve

java.lang.Object
   |
   +----netscape.util.Vector
           |
           +----com.micronova.util.SortedVector
                   |
                   +----com.micronova.math.SegmentedCurve
                           |
                           +----com.micronova.math.LinearSegmentedCurve

public class LinearSegmentedCurve
extends SegmentedCurve
A SegmentedCurve with linear interpolation. Given N boundary CurvePoints {(x[0], y[0]), ..., (x[N-1], y[N-1])}, the curve value f(x) is defined as follows:
(f(x) = 0 if there is no boundary CurvePoints).

Version:
1.0
Author:
Makoto Nagata, MicroNova

Constructor Index

 o LinearSegmentedCurve()

Method Index

 o getValueInSegment(double, int)
Defines the value for a given point x in index-th segment.

Constructors

 o LinearSegmentedCurve
 public LinearSegmentedCurve()

Methods

 o getValueInSegment
 public double getValueInSegment(double x,
                                 int index)
Defines the value for a given point x in index-th segment.

Overrides:
getValueInSegment in class SegmentedCurve

All Packages  Class Hierarchy  This Package  Previous  Next  Index