|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjphase.Term
public class Term
This class describes a basic term in a super-Erlang function It has the form: alpha lambda^n * t^(n-1) * exp(^-m*lambda) / (n-1)! Or alpha * R(n,lambda) where R(n,lambda) is an Erlang pdf.
Field Summary | |
---|---|
static Term |
ONE
Number 1.0 |
Constructor Summary | |
---|---|
Term(double cf,
int pw,
double lb)
Creates a term cf * t^pw exp(-lb * t) |
Method Summary | |
---|---|
java.lang.Object |
clone()
Clones this term |
int |
compareTo(Term tr)
Compares according to lambda,power in that order. |
static SuperErlang |
convolution(Term term1,
Term term2)
Return the convolution of this two terms |
static SuperErlang |
convolutionUseExp(Term term1,
Term term2)
|
double |
defIntegrate()
Returns the integral from 0 to infinity |
double |
defIntegrate(double x)
Returns the integral from 0 to x |
SuperErlang |
derive()
Returns the derivative at t |
boolean |
equalPowers(Term tr)
|
double |
evaluate()
Evaluates this term at infinity |
double |
evaluate(double x)
Evaluates this term at the value x |
Term |
expand(double a)
Return this term evaluated at t*a |
double |
getCoeff()
Returns the value of the coefficient |
int |
getDegree()
Returns the value of the degree |
double |
getLambda()
Returns the value of lambda |
SuperErlang |
integrate()
Returns the integral form 0 to t |
SuperErlang |
integrateCom()
Returns the integral from t to infinity |
boolean |
isConstant()
Tells if it is constatnt. |
boolean |
isPTerm()
Tells if the term is a polinonial |
boolean |
isZero()
Tells if it is identically = 0. |
protected double |
moment(int k)
Computes the k-th moment |
SuperErlang |
move(double a)
Return this term evaluated at t+a |
Term |
multiply(Term tr)
Return the product of this term with tr |
static Term |
multiply(Term t1,
Term t2)
Return the product of this two terms |
void |
setCoeff(double alpha)
Sets the value of the coefficient |
void |
setDegree(int n)
Returns the value of the degree |
void |
setLambda(double lbd)
Returns the value of the coefficient |
java.lang.String |
toString()
|
java.lang.String |
toStringE()
Represents the term as a multiple of an Eralng pdf. |
java.lang.String |
toStringP()
String representation of the Polynomial |
java.lang.String |
toStringRTF()
RTF representation fo the term |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static Term ONE
Constructor Detail |
---|
public Term(double cf, int pw, double lb)
cf
- coefficientpw
- powerlb
- lambdaMethod Detail |
---|
public double getCoeff()
public void setCoeff(double alpha)
alpha
- new valuepublic int getDegree()
public void setDegree(int n)
n
- public double getLambda()
public void setLambda(double lbd)
lbd
- lambdapublic java.lang.Object clone()
clone
in class java.lang.Object
public boolean isConstant()
public boolean isZero()
public boolean isPTerm()
public boolean equalPowers(Term tr)
tr
-
public int compareTo(Term tr)
tr
- Term to compare to
public double evaluate(double x)
x
- Evaluation point
public double evaluate()
public double defIntegrate()
public double defIntegrate(double x)
x
- upper limit of the integral
protected double moment(int k)
k
- required moment
public SuperErlang integrate()
public SuperErlang integrateCom()
public SuperErlang derive()
public static Term multiply(Term t1, Term t2)
t1
- First term to multiplyt2
- Second term to multiply
public Term multiply(Term tr)
tr
- Term to multiply
public SuperErlang move(double a)
a
-
public Term expand(double a)
a
-
public static SuperErlang convolution(Term term1, Term term2)
term1
- First termterm2
- Second term
public static SuperErlang convolutionUseExp(Term term1, Term term2)
term1
- term2
-
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringP()
public java.lang.String toStringE()
public java.lang.String toStringRTF()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |