public class WeightedAlgorithm extends AbstractThroughputAlgorithm
Modifier and Type | Class and Description |
---|---|
static class |
WeightedAlgorithm.WeightMethod
This enumeration contains values for logarithmic, exponential
or linear weighting.
|
INVALID_SCORE, window
Constructor and Description |
---|
WeightedAlgorithm(TaskFarmConfiguration<?,?,?> configuration)
Constructor.
|
WeightedAlgorithm(WeightedAlgorithm.WeightMethod weightMethod,
TaskFarmConfiguration<?,?,?> configuration) |
Modifier and Type | Method and Description |
---|---|
protected double |
doAnalysis(ThroughputHistory history)
Calculates a prediction for the most recent ThroughputEntry by means
of the last "window" entries.
|
getTroughputAnalysis
public WeightedAlgorithm(TaskFarmConfiguration<?,?,?> configuration)
configuration
- TaskFarmConfiguration of the Task Farm which
this algorithm is used forpublic WeightedAlgorithm(WeightedAlgorithm.WeightMethod weightMethod, TaskFarmConfiguration<?,?,?> configuration)
protected double doAnalysis(ThroughputHistory history)
AbstractThroughputAlgorithm
doAnalysis
in class AbstractThroughputAlgorithm
history
- measured throughput values + timestampsCopyright © 2015–2020. All rights reserved.