x and y.
Graphically, this is the specification of a straight line on a plane. The transformation can be
expressed as y = m * x + c for finite m and c, unless it is a vertical
transformation in which case x has a constant value for all y. In the
non-vertical case, m is the slope of the transformation (and a horizontal transformation
has zero slope).
| Modifier and Type | Class and Description |
|---|---|
| public static class | LinearTransformation.LinearTransformationBuilder
This is an intermediate stage in the construction process. |
| private static class | |
| private static class | |
| private static class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static LinearTransformation | |
| public static LinearTransformation | horizontal(double y)
Builds an instance representing a horizontal transformation with a constant value of |
| public abstract LinearTransformation | |
| public abstract boolean | |
| public abstract boolean | |
| public static LinearTransformation. | |
| public abstract double | |
| public abstract double | |
| public static LinearTransformation | vertical(double x)
Builds an instance representing a vertical transformation with a constant value of |
| LinearTransformation | back to summary |
|---|---|
| public LinearTransformation() | |
| forNaN | back to summary |
|---|---|
| public static LinearTransformation forNaN() Builds an instance for datasets which contains | |
| horizontal | back to summary |
|---|---|
| public static LinearTransformation horizontal(double y) Builds an instance representing a horizontal transformation with a constant value of | |
| inverse | back to summary |
|---|---|
| public abstract LinearTransformation inverse() Returns the inverse linear transformation. The inverse of a horizontal transformation is a
vertical transformation, and vice versa. The inverse of the | |
| isHorizontal | back to summary |
|---|---|
| public abstract boolean isHorizontal() Returns whether this is a horizontal transformation. | |
| isVertical | back to summary |
|---|---|
| public abstract boolean isVertical() Returns whether this is a vertical transformation. | |
| mapping | back to summary |
|---|---|
| public static LinearTransformation. Start building an instance which maps | |
| slope | back to summary |
|---|---|
| public abstract double slope() Returns the slope of the transformation, i.e. the rate of change of | |
| transform | back to summary |
|---|---|
| public abstract double transform(double x) Returns the | |
| vertical | back to summary |
|---|---|
| public static LinearTransformation vertical(double x) Builds an instance representing a vertical transformation with a constant value of | |
LinearTransformation#mapping. You almost certainly don't want to keep instances around, but
instead use method chaining. This represents a single point mapping, i.e. a mapping between one
x and y value pair.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public LinearTransformation | |
| public LinearTransformation | withSlope(double slope)
Finish building an instance with the given slope, i.e. the rate of change of |
| LinearTransformationBuilder | back to summary |
|---|---|
| private LinearTransformationBuilder(double x1, double y1) | |
| and | back to summary |
|---|---|
| public LinearTransformation and(double x2, double y2) Finish building an instance which also maps | |
| withSlope | back to summary |
|---|---|
| public LinearTransformation withSlope(double slope) Finish building an instance with the given slope, i.e. the rate of change of | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final LinearTransformation. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public LinearTransformation | inverse()
Implements abstract com. |
| public boolean | isHorizontal()
Implements abstract com. |
| public boolean | isVertical()
Implements abstract com. |
| public double | slope()
Implements abstract com. y with respect to
x.
|
| public String | |
| public double | transform(double x)
Implements abstract com. y corresponding to the given x.
|
| INSTANCE | back to summary |
|---|---|
| pack-priv static final LinearTransformation. | |
| NaNLinearTransformation | back to summary |
|---|---|
| private NaNLinearTransformation() | |
| inverse | back to summary |
|---|---|
| public LinearTransformation inverse() Implements abstract com. Doc from com. Returns the inverse linear transformation. The inverse of a horizontal transformation is a
vertical transformation, and vice versa. The inverse of the
| |
| isHorizontal | back to summary |
|---|---|
| public boolean isHorizontal() Implements abstract com. Doc from com. Returns whether this is a horizontal transformation.
| |
| isVertical | back to summary |
|---|---|
| public boolean isVertical() Implements abstract com. Doc from com. Returns whether this is a vertical transformation.
| |
| slope | back to summary |
|---|---|
| public double slope() Implements abstract com. Doc from com. Returns the slope of the transformation, i.e. the rate of change of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| transform | back to summary |
|---|---|
| public double transform(double x) Implements abstract com. Doc from com. Returns the
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv LinearTransformation | |
| pack-priv final double | |
| pack-priv final double |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private LinearTransformation | |
| public LinearTransformation | inverse()
Implements abstract com. |
| public boolean | isHorizontal()
Implements abstract com. |
| public boolean | isVertical()
Implements abstract com. |
| public double | slope()
Implements abstract com. y with respect to
x.
|
| public String | |
| public double | transform(double x)
Implements abstract com. y corresponding to the given x.
|
| inverse | back to summary |
|---|---|
| pack-priv LinearTransformation inverse
| |
| slope | back to summary |
|---|---|
| pack-priv final double slope | |
| yIntercept | back to summary |
|---|---|
| pack-priv final double yIntercept | |
| RegularLinearTransformation | back to summary |
|---|---|
| pack-priv RegularLinearTransformation(double slope, double yIntercept) | |
| RegularLinearTransformation | back to summary |
|---|---|
| pack-priv RegularLinearTransformation(double slope, double yIntercept, LinearTransformation inverse) | |
| createInverse | back to summary |
|---|---|
| private LinearTransformation createInverse() | |
| inverse | back to summary |
|---|---|
| public LinearTransformation inverse() Implements abstract com. Doc from com. Returns the inverse linear transformation. The inverse of a horizontal transformation is a
vertical transformation, and vice versa. The inverse of the
| |
| isHorizontal | back to summary |
|---|---|
| public boolean isHorizontal() Implements abstract com. Doc from com. Returns whether this is a horizontal transformation.
| |
| isVertical | back to summary |
|---|---|
| public boolean isVertical() Implements abstract com. Doc from com. Returns whether this is a vertical transformation.
| |
| slope | back to summary |
|---|---|
| public double slope() Implements abstract com. Doc from com. Returns the slope of the transformation, i.e. the rate of change of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| transform | back to summary |
|---|---|
| public double transform(double x) Implements abstract com. Doc from com. Returns the
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv LinearTransformation | |
| pack-priv final double |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private LinearTransformation | |
| public LinearTransformation | inverse()
Implements abstract com. |
| public boolean | isHorizontal()
Implements abstract com. |
| public boolean | isVertical()
Implements abstract com. |
| public double | slope()
Implements abstract com. y with respect to
x.
|
| public String | |
| public double | transform(double x)
Implements abstract com. y corresponding to the given x.
|
| inverse | back to summary |
|---|---|
| pack-priv LinearTransformation inverse
| |
| x | back to summary |
|---|---|
| pack-priv final double x | |
| VerticalLinearTransformation | back to summary |
|---|---|
| pack-priv VerticalLinearTransformation(double x) | |
| VerticalLinearTransformation | back to summary |
|---|---|
| pack-priv VerticalLinearTransformation(double x, LinearTransformation inverse) | |
| createInverse | back to summary |
|---|---|
| private LinearTransformation createInverse() | |
| inverse | back to summary |
|---|---|
| public LinearTransformation inverse() Implements abstract com. Doc from com. Returns the inverse linear transformation. The inverse of a horizontal transformation is a
vertical transformation, and vice versa. The inverse of the
| |
| isHorizontal | back to summary |
|---|---|
| public boolean isHorizontal() Implements abstract com. Doc from com. Returns whether this is a horizontal transformation.
| |
| isVertical | back to summary |
|---|---|
| public boolean isVertical() Implements abstract com. Doc from com. Returns whether this is a vertical transformation.
| |
| slope | back to summary |
|---|---|
| public double slope() Implements abstract com. Doc from com. Returns the slope of the transformation, i.e. the rate of change of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| transform | back to summary |
|---|---|
| public double transform(double x) Implements abstract com. Doc from com. Returns the
| |