|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectSciLib.Math.Num
public final class Num
This class contains some methods to construct numerical data.
| Constructor Summary | |
|---|---|
Num()
|
|
| Method Summary | |
|---|---|
static vector |
cos(vector v)
Compute cos(x) for all elements x in the vector v |
static vector |
cuberoot(vector y)
Compute cuberoot(x) for all elements x in the vector y |
static vector |
decibel(vector x)
Compute decibel(x) for all elements x in the vector v. |
static vector |
diric(vector x,
int n)
Compute Dirichlet(x,n) for all elements in the vector x |
static vector |
exp(vector v)
Compute exp(x) for all elements x in the vector v |
static integerVector |
factor(int n)
Generate a vector of prime factors of n. |
static vector |
gaussian(int n)
Make a vector of length n with the normally distributed double values. |
static vector |
imp(int pos,
int length)
Make an impulse signal of length "length" at position "pos" |
static vector |
log(vector v)
Compute log(x) for all elements x in the vector v |
static vector |
log10(vector v)
Compute log10(x) for all elements x in the vector v |
static vector |
log2(vector v)
Compute log2(x) for all elements x in the vector v |
static vector |
polynomial(double[] coef,
double[] x)
Make a vector that contains all values of a polynomial at all points in the array x |
static vector |
polynomial(vector coef,
vector x)
Make a vector that contains all values of a polynomial at all points in the vector x |
static integerVector |
primes(int n)
Generate a vector of prime numbers less than or equal to n. |
static vector |
rect(int from,
int to,
int length)
Make a rectangle signal. |
static vector |
sigmoid(vector y)
Compute sigmoid(x) for all elements x in the vector y |
static vector |
sigmoid2(vector y)
Compute sigmoid2(x) for all elements x in the vector y |
static vector |
sin(vector v)
Compute sin(x) for all elements x in the vector v |
static vector |
sinc(vector x)
Compute sinc(x) for all elements in the vector x |
static vector |
sineWave(double freq,
int n,
int length)
Make a sinewave that has fundamental frequency "freq" by a combination of n sinus functions |
static vector |
sineWave(double freq,
int n,
vector t)
Make a sinewave that has fundamental frequency "freq" by a combination of n sinus functions |
static vector |
uniform(int n)
Make a vector of length n with the uniform distributed double values between 0 1nd 1. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Num()
| Method Detail |
|---|
public static vector cos(vector v)
v - A vector
public static vector decibel(vector x)
x - A vector
public static vector diric(vector x,
int n)
x - A vectorn - An integer
public static vector exp(vector v)
v - A vector
public static vector gaussian(int n)
n - An integer
public static vector imp(int pos,
int length)
pos - The impulse positionlength - The length of the signal
public static vector log(vector v)
v - A vector
public static vector log10(vector v)
v - A vector
public static vector log2(vector v)
v - A vector
public static vector polynomial(double[] coef,
double[] x)
coef - The array that contains all coefficients of the polynomialx - An array
public static vector polynomial(vector coef,
vector x)
coef - The vector that contains all coefficients of the polynomialx - A vector
public static vector rect(int from,
int to,
int length)
from - From indexto - To indexlength - The length of the signal
public static vector sin(vector v)
v - A vector
public static vector sinc(vector x)
x - A vector
public static vector sineWave(double freq,
int n,
int length)
freq - The fundamental frequencyn - The number of harmonic componentslength - The length of the signal vector
public static vector sineWave(double freq,
int n,
vector t)
freq - The fundamental frequencyn - The number of harmonic componentst - The time vector
public static vector uniform(int n)
n - An integer
public static integerVector primes(int n)
n - An integer
public static integerVector factor(int n)
n - An integer
public static vector sigmoid(vector y)
y - A vector
public static vector sigmoid2(vector y)
y - A vector
public static vector cuberoot(vector y)
y - A vector
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||