Commit ff1c6093 authored by Marc Schiller's avatar Marc Schiller
Browse files

Added description of models to README.

parent 113110f3
...@@ -22,7 +22,7 @@ package de.tud.kom.p2psim.impl.topology.views.fiveg.models; ...@@ -22,7 +22,7 @@ package de.tud.kom.p2psim.impl.topology.views.fiveg.models;
/** /**
* An exponential model * An exponential model
* exp(u) = a * e^(c * u + d) + b * exp(u) = a * e^(c * (u - d)) + b
* @author Marc Schiller * @author Marc Schiller
* @version 1.0, 15 Dec 2016 * @version 1.0, 15 Dec 2016
*/ */
...@@ -60,12 +60,12 @@ public class ExponentialModel extends AbstractModel { ...@@ -60,12 +60,12 @@ public class ExponentialModel extends AbstractModel {
@Override @Override
public double getDouble(int users) { public double getDouble(int users) {
return this.a * Math.exp(this.c * users + this.d) + this.b; return this.a * Math.exp(this.c * (users - this.d)) + this.b;
} }
@Override @Override
public String toString() { public String toString() {
return "Exponential Model: exp(u) = " + this.a + " * e^(" + this.c + " * u + " + this.d + ") + " + this.b; return "Exponential Model: exp(u) = " + this.a + " * e^(" + this.c + " * (u + " - this.d + ")) + " + this.b;
} }
} }
...@@ -28,7 +28,7 @@ package de.tud.kom.p2psim.impl.topology.views.fiveg.models; ...@@ -28,7 +28,7 @@ package de.tud.kom.p2psim.impl.topology.views.fiveg.models;
*/ */
public class LinearModel extends AbstractModel { public class LinearModel extends AbstractModel {
private long a = 0; private long a = 1;
private long b = 0; private long b = 0;
public void setA(long a) { public void setA(long a) {
......
...@@ -22,7 +22,7 @@ package de.tud.kom.p2psim.impl.topology.views.fiveg.models; ...@@ -22,7 +22,7 @@ package de.tud.kom.p2psim.impl.topology.views.fiveg.models;
/** /**
* Logarithmic model * Logarithmic model
* log(u) = a * ln(c * u + d) + b * log(u) = a * ln(c * (u - d)) + b
* @author Marc Schiller * @author Marc Schiller
* @version 1.0, 15 Dec 2016 * @version 1.0, 15 Dec 2016
*/ */
......
# 5G Models # 5G Models
This module allows to add models to each segment of the map. This module allows to add models to each cell of the map.
...
## Configuration / Setup
TODO
## Models ## Models
* Constant * [Constant](#constant)
* Linear * [Linear](#linear)
* Exponential * [Exponential](#exponential)
* Logarithmic * [Logarithmic](#logarithmic)
* Cut-Off * [Cut-Off](#cut-off)
### Constant ### Constant
```math ![](https://dev.kom.e-technik.tu-darmstadt.de/gitlab/simonstrator/simonstrator-peerfactsim/raw/nr/monitoring-model/src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/img/constant.png)
f(x)=C
``` $`c(u)=C`$
> The constant model applies the the same constant value `c` to the selected metric regardless of the amount of users in the cell.
*Model-specific Parameters*:
`c` the constant value (*default* `0`)
### Linear
![](https://dev.kom.e-technik.tu-darmstadt.de/gitlab/simonstrator/simonstrator-peerfactsim/raw/nr/monitoring-model/src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/img/linear.png)
$`lin(u)=a*u+b`$
*Model-specific Parameters*:
`a` the slope (*default* `1`)
`b` y-axis intersection (*default* `0`)
### Exponential
![](https://dev.kom.e-technik.tu-darmstadt.de/gitlab/simonstrator/simonstrator-peerfactsim/raw/nr/monitoring-model/src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/img/exponential.png)
$`exp(u)=a*e^{c(u-d)}+b`$
*Model-specific Parameters*:
`a` scaling factor (*default* `1`)
`b` y-axis offset (*default* `0`)
`c` exponent scaling (*default* `1`)
`d` x-axis offset (*default* `0`)
### Logarithmic
![](https://dev.kom.e-technik.tu-darmstadt.de/gitlab/simonstrator/simonstrator-peerfactsim/raw/nr/monitoring-model/src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/img/logarithmic.png)
$`log(u)=a*ln(c(u-d))+b`$
*Model-specific Parameters*:
`a` scaling factor (*default* `1`)
`b` y-axis offset (*default* `0`)
`c` logarithm scaling (*default* `1`)
`d` x-axis offset (*default* `0`)
### Cut-Off
![](https://dev.kom.e-technik.tu-darmstadt.de/gitlab/simonstrator/simonstrator-peerfactsim/raw/nr/monitoring-model/src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/img/cutoff.png)
$`cut(u)=a*\theta(c(u-d))+b`$
> The cut-off model is based on the [Heaviside step function](https://en.wikipedia.org/wiki/Heaviside_step_function).
*Model-specific Parameters*:
The constant model applies the the same constant value `c` to the selected metric. `a` scaling factor (*default* `1`)
`b` y-axis offset (*default* `0`)
`c` scaling (*default* `1`)
`d` x-axis offset (*default* `0`)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment