public class FunctionType extends MathType
A Function domain type may be either a RealType (for a function with domain = R) or a RealTupleType (for a function with domain = R^n for n > 0).
Modifier and Type | Field and Description |
---|---|
static FunctionType |
REAL_1TO1_FUNCTION |
static FunctionType |
REAL_1TO3_FUNCTION |
static FunctionType |
REAL_1TO4_FUNCTION |
Constructor and Description |
---|
FunctionType(MathType domain,
MathType range)
domain must be a RealType or a RealTupleType;
range may be any MathType
|
Modifier and Type | Method and Description |
---|---|
MathType |
binary(MathType type,
int op,
Vector names) |
ShadowType |
buildShadowType(DataDisplayLink link,
ShadowType parent) |
MathType |
cloneDerivative(RealType d_partial) |
boolean |
equals(Object type)
ScalarTypes are equal if they have the same name;
TupleTypes are equal if their components are equal;
FunctionTypes are equal if their domains and ranges
are equal
|
boolean |
equalsExceptName(MathType type)
this is useful for determining compatibility of
Data objects for binary mathematical operations;
any RealTypes are equal; any TextTypes are equal;
TupleTypes are equal if their components are equal;
FunctionTypes are equal if their domains and ranges
are equal
|
boolean |
equalsExceptNameButUnits(MathType type) |
RealTupleType |
getDomain()
if the domain passed to constructor was a RealType,
getDomain returns a RealTupleType with that RealType
as its single component
|
boolean |
getFlat() |
RealTupleType |
getFlatRange() |
MathType |
getRange() |
boolean |
getReal() |
RealType[] |
getRealComponents() |
TextType[] |
getTextComponents() |
int[] |
getTextIndices() |
int |
hashCode()
Returns the hash code of this instance.
|
Data |
missingData()
returns a missing Data object for any MathType
|
String |
prettyString(int indent) |
MathType |
unary(int op,
Vector names) |
addTimeAlias, findScalarType, guessMaps, main, prettyString, stringToType, toString
public static final FunctionType REAL_1TO1_FUNCTION
public static final FunctionType REAL_1TO3_FUNCTION
public static final FunctionType REAL_1TO4_FUNCTION
public FunctionType(MathType domain, MathType range) throws VisADException
VisADException
public TextType[] getTextComponents()
public int[] getTextIndices()
public RealTupleType getDomain()
public MathType getRange()
public boolean getFlat()
public boolean getReal()
public RealTupleType getFlatRange()
public RealType[] getRealComponents()
public boolean equals(Object type)
MathType
public int hashCode()
equals(Object type)
,
then hashCode()
== type.hashCode()
.public boolean equalsExceptName(MathType type)
MathType
equalsExceptName
in class MathType
public boolean equalsExceptNameButUnits(MathType type) throws VisADException
equalsExceptNameButUnits
in class MathType
VisADException
public MathType cloneDerivative(RealType d_partial) throws VisADException
cloneDerivative
in class MathType
VisADException
public MathType binary(MathType type, int op, Vector names) throws VisADException
binary
in class MathType
VisADException
public MathType unary(int op, Vector names) throws VisADException
unary
in class MathType
VisADException
public String prettyString(int indent)
prettyString
in class MathType
public Data missingData() throws VisADException, RemoteException
MathType
missingData
in class MathType
VisADException
RemoteException
public ShadowType buildShadowType(DataDisplayLink link, ShadowType parent) throws VisADException, RemoteException
buildShadowType
in class MathType
VisADException
RemoteException
Copyright © 1996–2023 The SSEC Visualization Project. All rights reserved.