public abstract class BasicErrorModel extends Object implements ErrorModel
Constructor and Description |
---|
BasicErrorModel(double maximumAllowedError)
Creates a new instance of
BasicErrorModel . |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone this error model (e.g. for performance reasons).
|
void |
configure(Frame parent)
If this object is configurable, a dialog to configure the
object is shown.
|
double |
getAverageError()
Gets the average error this model produced until this point in time.
|
double |
getMaximumAllowedError()
Gets the maximum error this model is allowed to produce.
|
double |
getMaximumError()
Gets the maximum error this model produced until this point in time.
|
double |
getScaleFactor()
Get the scale factor (bias).
|
boolean |
isConfigurable()
Tests, if this object is configurable.
|
boolean |
isNegativeOffsetsEnabled()
Tests if negative distance offsets are enabled.
|
void |
reset()
Reset the error model to initial state (statistics).
|
void |
setMaximumAllowedError(double max)
Sets the maximum error this model is allowed to produce.
|
void |
setNegativeOffsetsEnabled(boolean b)
Enables or disables negative distance offsets.
|
void |
setScaleFactor(double bias)
Set the scale factor (bias).
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getName, getOffset
public BasicErrorModel(double maximumAllowedError)
BasicErrorModel
.maximumAllowedError
- The maximum allowed error.public Object clone()
clone
in interface ErrorModel
clone
in class Object
null
if
cloning is not supported by error model.public double getMaximumAllowedError()
getMaximumAllowedError
in interface ErrorModel
public void setMaximumAllowedError(double max)
This might be useful to cut off too large values produces by the error model, e.g. values larger than the radio range.
setMaximumAllowedError
in interface ErrorModel
max
- The new maximum error.public boolean isNegativeOffsetsEnabled()
ErrorModel
isNegativeOffsetsEnabled
in interface ErrorModel
true
if negative distance offsets are enabled;
false
otherwise.public void setNegativeOffsetsEnabled(boolean b)
Note that the error model still must support negative offsets, not all do.
setNegativeOffsetsEnabled
in interface ErrorModel
b
- true
if negative distance offsets should be used;
false
otherwise.public double getAverageError()
getAverageError
in interface ErrorModel
public double getMaximumError()
getMaximumError
in interface ErrorModel
public double getScaleFactor()
getScaleFactor
in interface ErrorModel
public void setScaleFactor(double bias)
Default value is 1
.
setScaleFactor
in interface ErrorModel
bias
- The new bias to set.public void reset()
reset
in interface ErrorModel
public boolean isConfigurable()
isConfigurable
in interface Configurable
true
if this object is configurable;
false
otherwise.public void configure(Frame parent)
configure
in interface Configurable
parent
- The parent frame of the new dialog.Copyright © 2012 Thomas Hillebrandt. All Rights Reserved.