|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.SP.Sp
public final class Sp
This class contains some useful methods using in Signal Processing.
| Constructor Summary | |
|---|---|
Sp()
|
|
| Method Summary | |
|---|---|
static vector |
conv(double[] x,
double[] y)
Computer the linear convolution of two signals x*y |
static vector |
conv(vector x,
vector y)
Computer the linear convolution of two signals x*y |
static vector |
filter(double[] b,
double[] a,
double[] x)
Filters the data in vector x with the filter described by vectors a and b |
static vector |
filter(vector b,
vector a,
vector x)
Filters the data in vector x with the filter described by vectors a and b |
static double |
muCode(double x,
int mu)
Compute the muLaw code of a double x, -1 <= x <= 1 |
static vector |
muCode(vector x,
int mu)
Compute the muLaw code of a double x, 0 <= x <= 1 |
static double |
power(vector s)
Computer the power of a finite signal |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Sp()
| Method Detail |
|---|
public static double power(vector s)
s - A vector that represents the signal
public static vector conv(double[] x,
double[] y)
x - A double arrayy - A double array
public static vector conv(vector x,
vector y)
x - A vector signaly - A vector signal
public static vector filter(vector b,
vector a,
vector x)
x - A vector signalb - A filter coefficient vectora - A filter coefficient vector
public static vector filter(double[] b,
double[] a,
double[] x)
x - A double array signalb - A filter coefficient arraya - A filter coefficient array
public static double muCode(double x,
int mu)
x - A double valuemu - An integer value, mu = 0, 1, 100, 255
public static vector muCode(vector x,
int mu)
x - A double valuemu - An integer value, mu = 0, 1, 100, 255
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||