public class MMFunctionDefinedByExpression extends MMDefaultCanvasObject implements FunctionOverBorelSetIF, MMFunctionAndDerivativeOverRIF, MMOneChainInRIF
FunctionOverRIF
.DEFAULT_DELTA
DIRECTION_VECTOR, EDITABLE, EDITED, FINITE_NUMBER_SET_ENTRY, INDEXED_ENTRY, INTERVAL, INTERVAL_LOW_BOUND_TYPE, INTERVAL_LOW_BOUND_VALUE, INTERVAL_UP_BOUND_TYPE, INTERVAL_UP_BOUND_VALUE, MATRIX_ENTRY, NUMBER, NUMBERMATRIX, OPERATION, OPERATION_ARRAY, ORIGIN_VECTOR, RELATION, SET_ENTRY, STRING, STRING_MATRIX
DEFAULT_VERTICES_COUNT
Constructor and Description |
---|
MMFunctionDefinedByExpression(java.lang.Class entryClass)
Constructs the function with an empty (null) expression.
|
MMFunctionDefinedByExpression(java.lang.Class entryClass,
FunctionOverRIF f)
Constructs the function with the given expression as evaluation unit.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areBoundarysVisible()
Returns whether the boundaries of the one chain's domain should be made visible by the system.
|
boolean |
connect(double x1,
double x2)
Returns whether the points x1 and x2 should be connected
Return false if the function is undefined for x between x1 and x2
|
double |
evaluate(double x)
Returns the function value for the given x.
|
void |
evaluate(double[] xin,
double[] yout)
Inserts the function values for the given x array into the given y array.
|
void |
evaluate(MNumber xin,
MNumber yout)
Inserts the function value for the given x into the given y.
|
int |
getAllIntervalCount()
Returns the number of intervals
|
FiniteBorelSet |
getBorelSet()
Returns the borel set, this function is defined on.
|
FiniteBorelSet |
getBorelSetInComponent(int index)
Returns the borel set of the chosen component f_i.
|
int |
getComponentsCount()
Returns the number of components for this one-chain.
|
int |
getDefaultTransformType()
Returns the default transform type of this object.
|
int |
getDefaultTransformTypeAsContainer()
Returns the default transform type of this object if it is rendered in
a
MMPanel . |
int |
getDefaultTransformTypeInCanvas()
Returns the default transform type when rendered in a canvas.
|
FunctionOverRIF |
getDerivativeByNumeric()
Returns the numerically computed derivative of this function.
|
FunctionOverRIF |
getDerivativeByNumeric(double epsilon)
Returns the numerically computed derivative of this function using the given delta for the difference quotient.
|
void |
getDerivativeByNumeric(double epsilon,
MMFunctionDefinedByExpression f)
Stores the numerically computed derivative for the specified
epsilon in the given
function argument. |
void |
getDerivativeByNumeric(MMFunctionDefinedByExpression f)
Stores the numerically computed derivative of this function in the given
function argument.
|
NumberSetIF |
getDomain() |
FunctionOverRIF |
getEvaluateExpressionInComponent(int index)
Returns the expression of the chosen component f_i.
|
FunctionOverRIF |
getFunction()
Returns the function serving as evaluation unit.
|
Interval |
getInterval(int expressionCount,
int intervalIndexInBorelSet)
Returns a specific interval of the chosen component f_i.
|
int |
getIntervalCountInComponent(int index)
Returns the number of intervals (of the borel set) for the chosen component f_i.
|
java.lang.Class |
getNumberClass()
Returns the class object of the underlying number type of this geometric
object.
|
FunctionOverRIF |
getPrimitive()
Returns the primitive G(x) = int_0^x g(t) dt where g is this function
|
FunctionOverRIF |
getPrimitive(double a)
Returns the primitive G(x) = int_a^x g(t) dt where g is this function
|
void |
getPrimitive(MMFunctionDefinedByExpression f)
Sets f to the primitive G(x) = int_0^x g(t) dt of this function g
|
void |
getPrimitive(MMFunctionDefinedByExpression f,
double a)
Sets f to the primitive G(x) = int_a^x g(t) dt of this function g
|
int |
getVerticesCount()
Returns the number of vertices on which this continuous structure is mapped.
|
void |
setBorelSet(FiniteBorelSet set)
Sets the borel set, this function is defined on.
|
void |
setBoundarysVisible(boolean aFlag)
Specifies whether the boundaries of the one chain's domain should be made visible by the system.
|
void |
setFunction(FunctionOverRIF f)
Sets the given function expression as evaluation unit.
|
void |
setVerticesCount(int vertexCount)
Sets the number of vertices on which this continuous structure is mapped.
|
addHandler, addSpecialCaseListener, addUpdater, dependsOn, dependsOn, doAction, draw, fireSpecialCaseEvent, getActiveHandler, getAsCanvasContent, getAsContainerContent, getAsContainerContent, getCanvas, getCanvasTransformer, getDisplayProperties, getDisplayTransformerMap, getHandlerCount, getHandlers, getInteractionHelper, getLabel, getTransformType, getUpdaterCount, getWorldBoundingBox, invokeUpdaters, isAtScreenLocation, isEditable, isSelectable, isSelected, isVisible, propertyChange, removeAllHandlers, removeAllUpdaters, removeHandler, removeSpecialCaseListener, removeUpdater, render, resetActiveHandler, setBorderColor, setCanvas, setCanvasTransformer, setColor, setDisplayProperties, setEditable, setLabel, setObjectColor, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addSpecialCaseListener, fireSpecialCaseEvent, getDisplayProperties, getLabel, isEditable, removeSpecialCaseListener, setDisplayProperties, setEditable, setLabel
draw, getAsContainerContent, getAsContainerContent, getDisplayTransformerMap, getTransformType, isVisible, render, setVisible
addHandler, addUpdater, dependsOn, dependsOn, doAction, getActiveHandler, getHandlerCount, getHandlers, getUpdaterCount, invokeUpdaters, isSelectable, isSelected, removeAllHandlers, removeAllUpdaters, removeHandler, removeUpdater, resetActiveHandler
getAsCanvasContent, getCanvas, getCanvasTransformer, getWorldBoundingBox, isAtScreenLocation, setCanvas, setCanvasTransformer
public MMFunctionDefinedByExpression(java.lang.Class entryClass)
public MMFunctionDefinedByExpression(java.lang.Class entryClass, FunctionOverRIF f)
public void setFunction(FunctionOverRIF f)
public FunctionOverRIF getFunction()
public int getDefaultTransformType()
VisualizeIF
GeneralTransformer
.getDefaultTransformType
in interface VisualizeIF
getDefaultTransformType
in class MMDefaultCanvasObject
public int getDefaultTransformTypeInCanvas()
VisualizeInCanvasIF
GeneralTransformer
.getDefaultTransformTypeInCanvas
in interface VisualizeInCanvasIF
getDefaultTransformTypeInCanvas
in class MMDefaultCanvasObject
public int getDefaultTransformTypeAsContainer()
VisualizeIF
MMPanel
. It is
one of the constants listed in
GeneralTransformer
.getDefaultTransformTypeAsContainer
in interface VisualizeIF
getDefaultTransformTypeAsContainer
in class MMDefaultCanvasObject
public int getVerticesCount()
Discretizable1DIF
getVerticesCount
in interface Discretizable1DIF
public void setVerticesCount(int vertexCount)
Discretizable1DIF
setVerticesCount
in interface Discretizable1DIF
public void setBoundarysVisible(boolean aFlag)
MMOneChainInRIF
setBoundarysVisible
in interface MMOneChainInRIF
public boolean areBoundarysVisible()
MMOneChainInRIF
areBoundarysVisible
in interface MMOneChainInRIF
public FiniteBorelSet getBorelSet()
FunctionOverBorelSetIF
getBorelSet
in interface FunctionOverBorelSetIF
public NumberSetIF getDomain()
public double evaluate(double x)
FunctionOverRIF
evaluate
in interface FunctionOverRIF
public void evaluate(double[] xin, double[] yout)
FunctionOverRIF
evaluate
in interface FunctionOverRIF
public void evaluate(MNumber xin, MNumber yout)
FunctionOverRIF
evaluate
in interface FunctionOverRIF
public java.lang.Class getNumberClass()
NumberTypeDependentIF
getNumberClass
in interface NumberTypeDependentIF
public int getAllIntervalCount()
OneChainInRIF
getAllIntervalCount
in interface OneChainInRIF
public Interval getInterval(int expressionCount, int intervalIndexInBorelSet)
OneChainInRIF
getInterval
in interface OneChainInRIF
public FunctionOverRIF getEvaluateExpressionInComponent(int index)
OneChainInRIF
getEvaluateExpressionInComponent
in interface OneChainInRIF
public FiniteBorelSet getBorelSetInComponent(int index)
OneChainInRIF
getBorelSetInComponent
in interface OneChainInRIF
public int getComponentsCount()
OneChainInRIF
getComponentsCount
in interface OneChainInRIF
public int getIntervalCountInComponent(int index)
OneChainInRIF
getIntervalCountInComponent
in interface OneChainInRIF
public void getDerivativeByNumeric(MMFunctionDefinedByExpression f)
MMFunctionAndDerivativeOverRIF
getDerivativeByNumeric
in interface MMFunctionAndDerivativeOverRIF
public void getDerivativeByNumeric(double epsilon, MMFunctionDefinedByExpression f)
MMFunctionAndDerivativeOverRIF
epsilon
in the given
function argument.getDerivativeByNumeric
in interface MMFunctionAndDerivativeOverRIF
public FunctionOverRIF getDerivativeByNumeric()
FunctionAndDerivativeOverRIF
getDerivativeByNumeric
in interface FunctionAndDerivativeOverRIF
public FunctionOverRIF getDerivativeByNumeric(double epsilon)
FunctionAndDerivativeOverRIF
getDerivativeByNumeric
in interface FunctionAndDerivativeOverRIF
public FunctionOverRIF getPrimitive()
public void getPrimitive(MMFunctionDefinedByExpression f)
public void getPrimitive(MMFunctionDefinedByExpression f, double a)
public FunctionOverRIF getPrimitive(double a)
public void setBorelSet(FiniteBorelSet set)
FunctionOverBorelSetIF
setBorelSet
in interface FunctionOverBorelSetIF
public boolean connect(double x1, double x2)
MMOneChainInRIF
connect
in interface MMOneChainInRIF
Further documentation and examples can be found under www.mathletfactory.de.