Skip to content

Commit 9506063

Browse files
Merged main.
1 parent 0073528 commit 9506063

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

stars-core/src/main/kotlin/tools/aqua/stars/core/evaluation/TSCEvaluation.kt

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ import tools.aqua.stars.core.types.*
4444
* @param S [SegmentType].
4545
* @param U [TickUnit].
4646
* @param D [TickDifference].
47+
* @param writeSerializedResults (Default: ``true``) Whether to write result files and compare them
48+
* to previous runs after the analysis.
49+
* @param compareToGroundTruth (Default: ``false``) Whether to compare the results to the ground
50+
* truth.
51+
* @param compareToPreviousRun (Default: ``false``) Whether to compare the results to the previous
52+
* run.
4753
* @property tscList The list of [TSC]s to evaluate.
4854
* @property writePlots (Default: ``true``) Whether to write plots after the analysis.
4955
* @property writePlotDataCSV (Default: ``false``) Whether to write CSV files after the analysis.
@@ -58,6 +64,9 @@ class TSCEvaluation<
5864
val tscList: List<TSC<E, T, S, U, D>>,
5965
val writePlots: Boolean = true,
6066
val writePlotDataCSV: Boolean = false,
67+
val writeSerializedResults: Boolean = true,
68+
val compareToGroundTruth: Boolean = false,
69+
val compareToPreviousRun: Boolean = false,
6170
override val logger: Logger = Loggable.getLogger("evaluation-time")
6271
) : Loggable {
6372

@@ -201,22 +210,8 @@ class TSCEvaluation<
201210
* [MetricProvider].
202211
*
203212
* @param segments The [Sequence] of [SegmentType]s to evaluate.
204-
* @param writeSerializedResults (Default: ``true``) Whether to write result files and compare
205-
* them to previous runs after the analysis.
206-
* @param compareToGroundTruth (Default: ``false``) Whether to compare the results to the ground
207-
* truth.
208-
* @param compareToPreviousRun (Default: ``false``) Whether to compare the results to the previous
209-
* run.
210213
* @throws IllegalArgumentException When there are no [MetricProvider]s registered.
211214
*/
212-
fun runEvaluation(
213-
writePlots: Boolean = true,
214-
writePlotDataCSV: Boolean = false,
215-
writeSerializedResults: Boolean = true,
216-
compareToGroundTruth: Boolean = false,
217-
compareToPreviousRun: Boolean = false,
218-
) {
219-
require(metricProviders.any()) { "There needs to be at least one registered MetricProviders." }
220215
fun runEvaluation(segments: Sequence<S>) {
221216
require(metricProviders.any()) { "There needs to be at least one registered MetricProvider." }
222217

0 commit comments

Comments
 (0)