public class Diff extends Object
| Modifier and Type | Method and Description |
|---|---|
static double[] |
values(double[] v)
Finds the numerical difference between value at position (i+1) and (i)
returning a vector of what would be needed to be added to the first (n-1) elements
of the original vector to get the original vector.
|
static double[] |
values(double[] v,
int t)
Finds the t^{th} numerical difference between value at position (i+1) and (i)
(effectively recurses #values "t" times).
|
static float[] |
values(float[] v)
Finds the numerical difference between value at position (i+1) and (i)
returning a vector of what would be needed to be added to the first (n-1) elements
of the original vector to get the original vector.
|
static float[] |
values(float[] v,
int t)
Finds the t^{th} numerical difference between value at position (i+1) and (i)
(effectively recurses #values "t" times).
|
static int[] |
values(int[] v)
Finds the numerical difference between value at position (i+1) and (i)
returning a vector of what would be needed to be added to the first (n-1) elements
of the original vector to get the original vector.
|
static int[] |
values(int[] v,
int t)
Finds the t^{th} numerical difference between value at position (i+1) and (i)
(effectively recurses #values "t" times).
|
static long[] |
values(long[] v)
Finds the numerical difference between value at position (i+1) and (i)
returning a vector of what would be needed to be added to the first (n-1) elements
of the original vector to get the original vector.
|
static long[] |
values(long[] v,
int t)
Finds the t^{th} numerical difference between value at position (i+1) and (i)
(effectively recurses #values "t" times).
|
public static double[] values(double[] v)
v - the vectorpublic static double[] values(double[] v,
int t)
v - the vectort - the number of differences to be taken (t positive)public static float[] values(float[] v)
v - the vectorpublic static float[] values(float[] v,
int t)
v - the vectort - the number of differences to be taken (t positive)public static int[] values(int[] v)
v - the vectorpublic static int[] values(int[] v,
int t)
v - the vectort - the number of differences to be taken (t positive)public static long[] values(long[] v)
v - the vectorpublic static long[] values(long[] v,
int t)
v - the vectort - the number of differences to be taken (t positive)Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.