- added docs for all the classes and methods
- fixed variance --> stdDev
This commit is contained in:
2025-01-29 12:07:36 +01:00
parent 2a4b494843
commit 0c82dc7dff
5 changed files with 136 additions and 74 deletions

View File

@@ -200,17 +200,20 @@ public interface Distribution {
}
/**
* TODO
* Distribution of the UnavailableTime that has a probability of happening.
* In case the node is unavailable then a value of the second distribution is
* returned.
*/
public static class UnavailableTime implements Distribution {
public final double probability;
public final Distribution distribution;
/**
* TODO
* Create a new distribution with a probability of happening.
* In case it happens then a value of the second distribution is returned.
*
* @param probability
* @param distribution
* @param probability the probability of returning a value > 0.0
* @param distribution the distribution where to get the samples
*/
public UnavailableTime(double probability, Distribution distribution) {
this.probability = probability;