public class TrapezoidalFunction
extends java.lang.Object
Constructor and Description |
---|
TrapezoidalFunction() |
TrapezoidalFunction(double a,
double b,
double c,
double d)
Constructor without name
|
TrapezoidalFunction(java.lang.String name,
double a,
double b,
double c,
double d)
Basis constructor with four values a, b, c, d
If a=b then the function is decreasing.
|
Modifier and Type | Method and Description |
---|---|
double |
get_lower_bound()
Return the abscissa bound from which any lower value as an ordinate of 0
|
double |
get_upper_bound()
Return the abscissa bound from which any upper value as an ordinate of 0
|
java.lang.String |
getName() |
boolean |
is_decreasing() |
boolean |
is_increasing() |
double |
mu(double x)
Calculating the y value of an abscissa x position
|
double |
mu(java.lang.Long x) |
void |
print() |
void |
setName(java.lang.String name) |
java.lang.String |
toString() |
java.lang.String |
translator_query_test(java.lang.String name,
java.lang.String lengthStr) |
public TrapezoidalFunction(java.lang.String name, double a, double b, double c, double d)
public TrapezoidalFunction()
public TrapezoidalFunction(double a, double b, double c, double d)
public boolean is_decreasing()
public boolean is_increasing()
public double mu(double x)
x
- the abscissa positionpublic double mu(java.lang.Long x)
public double get_lower_bound() throws NoLowerBound
NoLowerBound
public double get_upper_bound() throws NoUpperBound
NoUpperBound
public java.lang.String translator_query_test(java.lang.String name, java.lang.String lengthStr) throws NoLowerBound, NoUpperBound
NoLowerBound
NoUpperBound
public java.lang.String toString()
toString
in class java.lang.Object
public void print()
public java.lang.String getName()
public void setName(java.lang.String name)