public class ErrorModelLos extends BasicErrorModel
Constructor and Description |
---|
ErrorModelLos(double maximumAllowedError,
double mean,
double sdev)
Creates a new instance of
ErrorModelLos . |
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.
|
String |
getName()
Returns the name of the error model.
|
double |
getOffset(double distance,
double pNlos)
Gets the distance offset in meters from this error model.
|
double |
getVariance()
Get the variance of the Normal Distribution of the error model.
|
boolean |
isConfigurable()
Tests, if this object is configurable.
|
String |
toString()
Returns a string representation of this error model.
|
getAverageError, getMaximumAllowedError, getMaximumError, getScaleFactor, isNegativeOffsetsEnabled, reset, setMaximumAllowedError, setNegativeOffsetsEnabled, setScaleFactor
public ErrorModelLos(double maximumAllowedError, double mean, double sdev)
ErrorModelLos
.maximumAllowedError
- The maximum allowed error.mean
- The mean of the Normal Distribution (LOS).sdev
- The standard deviation of the Normal Distribution (LOS).public double getVariance()
public String getName()
ErrorModel
The name should not be too long, e.g. less than 20 chars.
public double getOffset(double distance, double pNlos)
ErrorModel
The real distance between reference node and mobile node might be used by a model to model some sort of NLOS probability if second parameter is not used by the model.
distance
- The real distance between reference node and mobile node
corresponding to the current measurement. Will be ignored
by most error models.pNlos
- The NLOS probability in range (0,1).public String toString()
public Object clone()
BasicErrorModel
clone
in interface ErrorModel
clone
in class BasicErrorModel
null
if
cloning is not supported by error model.public boolean isConfigurable()
BasicErrorModel
isConfigurable
in interface Configurable
isConfigurable
in class BasicErrorModel
true
if this object is configurable;
false
otherwise.public void configure(Frame parent)
BasicErrorModel
configure
in interface Configurable
configure
in class BasicErrorModel
parent
- The parent frame of the new dialog.Copyright © 2012 Thomas Hillebrandt. All Rights Reserved.