|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectorg.jcurl.math.R1RNFunctionImpl
org.jcurl.math.CurveCombined<T>
T - type of the parts to be combined.public class CurveCombined<T extends R1RNFunction>
Combined curve. Becomes more and more similar to List with some
restrictions and additions.
| Nested Class Summary | |
|---|---|
static class |
CurveCombined.Part<U extends R1RNFunction>
One segment of the combined curve. |
| Field Summary | |
|---|---|
(package private) Map<Integer,String> |
m
|
| Constructor Summary | |
|---|---|
CurveCombined(int dim)
|
|
| Method Summary | ||
|---|---|---|
void |
add(double t0,
T fkt,
boolean dropTail)
|
|
double[] |
at(double t,
int c,
double[] ret)
Get the n-th derivative of all dimensions. |
|
double |
at(double t,
int c,
int dim)
Compute the c'th derivative of the given dimension at t. |
|
(package private) static int |
binarySearch(double[] a,
int min,
int max,
double key)
Search only part of an array. |
|
(package private) static
|
binarySearch(List<E> a,
int fromIndex,
int toIndex,
E key,
Comparator<? super E> comp)
Search only part of a list. |
|
(package private) static
|
binarySearch(List<Map.Entry<Double,V>> a,
int fromIndex,
int toIndex,
double key)
Search only part of an array. |
|
void |
clear()
|
|
boolean |
dropTail(double t)
Drop all segments with t0 >= t. |
|
T |
first()
|
|
Iterator<Map.Entry<Double,T>> |
iterator()
|
|
String |
toString()
|
|
| Methods inherited from class org.jcurl.math.R1RNFunctionImpl |
|---|
at, dim |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
Map<Integer,String> m
| Constructor Detail |
|---|
public CurveCombined(int dim)
| Method Detail |
|---|
static int binarySearch(double[] a,
int min,
int max,
double key)
a - min - max - key -
Arrays.binarySearch(double[], double)
static <E> int binarySearch(List<E> a,
int fromIndex,
int toIndex,
E key,
Comparator<? super E> comp)
a - fromIndex - toIndex - key - comp -
static <V extends R1RNFunction> int binarySearch(List<Map.Entry<Double,V>> a,
int fromIndex,
int toIndex,
double key)
Comparable and Objects.
a - fromIndex - toIndex - key -
public void add(double t0,
T fkt,
boolean dropTail)
public double[] at(double t,
int c,
double[] ret)
at in interface R1RNFunctionat in class R1RNFunctionImplt - c - derivativeret - null creates a new instance
R1RNFunctionImpl.at(double, int, double[])
public double at(double t,
int c,
int dim)
R1RNFunctiont.
at in interface R1RNFunctionat in class R1RNFunctionImplt - t-valuec - derivative (0=location, 1:speed, ...)dim - dimension (0,1,2,...)
tpublic void clear()
public boolean dropTail(double t)
t -
false nothing dropped.public T first()
public Iterator<Map.Entry<Double,T>> iterator()
iterator in interface Iterable<Map.Entry<Double,T extends R1RNFunction>>public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||