Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
ff1c6093
Commit
ff1c6093
authored
Jan 03, 2017
by
Marc Schiller
Browse files
Added description of models to README.
parent
113110f3
Changes
9
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/ExponentialModel.java
View file @
ff1c6093
...
@@ -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
;
}
}
}
}
src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/LinearModel.java
View file @
ff1c6093
...
@@ -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
)
{
...
...
src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/LogarithmicModel.java
View file @
ff1c6093
...
@@ -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
*/
*/
...
...
src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/README.md
View file @
ff1c6093
# 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
src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/img/constant.png
0 → 100644
View file @
ff1c6093
77.7 KB
src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/img/cutoff.png
0 → 100644
View file @
ff1c6093
106 KB
src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/img/exponential.png
0 → 100644
View file @
ff1c6093
158 KB
src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/img/linear.png
0 → 100644
View file @
ff1c6093
130 KB
src/de/tud/kom/p2psim/impl/topology/views/fiveg/models/img/logarithmic.png
0 → 100644
View file @
ff1c6093
140 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment