|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.oregondsp.signalProcessing.filter.iir.Rational
public class Rational
Class implementing rational functions. Used to design and represent analog and digital filters. The rational function is of the form H(s) = N(s)/D(s), where N and D are polynomials.
Constructor Summary | |
---|---|
Rational(double c)
Instantiates a new rational function object from a constant. |
|
Rational(double[] num,
double[] denom)
Instantiates a new rational function, given arrays specifying the numerator and denominator polynomials. |
|
Rational(Polynomial N,
Polynomial D)
Instantiates a new rational function, given Polynomial objects for the numerator and denominator. |
|
Rational(Rational R)
Constructs a new rational function by copying an existing rational function object. |
Method Summary | |
---|---|
double |
canonicalForm()
Puts the rational function representation in canonical form. |
Polynomial |
denominator()
Returns a copy of the denominator polynomial. |
double |
discreteTimeGroupDelay(double Omega)
Calculates the group delay of a digital filter with transfer function specified by this rational function. |
Complex |
evaluate(Complex c)
Evaluates a rational function for a complex argument. |
double |
evaluate(double x)
Evaluates the rational function for a real argument. |
double |
groupDelay(double omega)
Calculates the group delay of an analog filter with transfer function specified by this rational function. |
Rational |
map(Rational S)
Maps a rational function to a new rational function by substitution of a rational function for the argument. |
Polynomial |
numerator()
Returns a copy of the numerator polynomial. |
int[] |
order()
Returns the orders of the numerator and denominator polynomials. |
void |
print(java.io.PrintStream ps)
Prints the coefficients of the rational function. |
Complex |
residue(Complex pole)
Calculates the residue of a complex pole of the rational function. |
double |
residue(double pole)
Calculates the residue of a real pole of the rational function. |
void |
timesEquals(double A)
Scales (in-place) a rational function by a constant. |
void |
timesEquals(Polynomial P)
Multiplies (in-place) a rational function by a polynomial. |
void |
timesEquals(Rational R)
Multiplies(in-place) a rational function by another rational function. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Rational(double[] num, double[] denom)
num
- double[] specifying coefficients of the numerator polynomial.denom
- double[] specifying coefficients of the denominator polynomial.public Rational(Polynomial N, Polynomial D)
N
- Polynomial instance specifying the numerator polynomial.D
- Polynomial instance specifying the denominator polynomial.public Rational(Rational R)
R
- Rational function object to be copied.public Rational(double c)
c
- double specifying the constant of the numerator.Method Detail |
---|
public int[] order()
public Polynomial numerator()
public Polynomial denominator()
public double canonicalForm()
public void timesEquals(double A)
A
- double specifying the scale factor.public void timesEquals(Polynomial P)
P
- Polynomial object specifying the multiplicative polynomial factor.public void timesEquals(Rational R)
R
- Rational object specifying the multiplicative rational factor.public double evaluate(double x)
x
- double specifying the argument to the rational function.
public Complex evaluate(Complex c)
c
- Complex object specifying the complex argument.
public Rational map(Rational S)
S
- Rational object specifying the mapping function.
public double residue(double pole)
pole
- double specifying the real pole (root of the denominator).
public Complex residue(Complex pole)
pole
- Complex object specifying the pole.
public double groupDelay(double omega)
omega
- double specifying the radial frequency (2*pi*f) at which the group delay is evaluated.
public double discreteTimeGroupDelay(double Omega)
Omega
- double specifying the digital frequency [0 pi] at which the group delay is evaluated.
public void print(java.io.PrintStream ps)
ps
- Printstream to which the rational function coefficients are printed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |