-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from AQLT/develop
benchmarking output for jdr
- Loading branch information
Showing
3 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
42 changes: 42 additions & 0 deletions
42
jdr/src/main/java/ec/tstoolkit/jdr/sa/SaBenchmarkingResultsInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* | ||
* Copyright 2017 National Bank of Belgium | ||
* | ||
* Licensed under the EUPL, Version 1.2 or – as soon they will be approved | ||
* by the European Commission - subsequent versions of the EUPL (the "Licence"); | ||
* You may not use this work except in compliance with the Licence. | ||
* You may obtain a copy of the Licence at: | ||
* | ||
* https://joinup.ec.europa.eu/software/page/eupl | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the Licence is distributed on an "AS IS" basis, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the Licence for the specific language governing permissions and | ||
* limitations under the Licence. | ||
*/ | ||
package ec.tstoolkit.jdr.sa; | ||
|
||
import jd2.information.InformationMapping; | ||
import ec.tstoolkit.timeseries.simplets.TsData; | ||
import ec.satoolkit.benchmarking.SaBenchmarkingResults; | ||
|
||
/** | ||
* | ||
* @author Alain Quartier la Tente | ||
*/ | ||
@lombok.experimental.UtilityClass | ||
public class SaBenchmarkingResultsInfo { | ||
|
||
final InformationMapping<SaBenchmarkingResults> MAPPING = new InformationMapping<>(SaBenchmarkingResults.class); | ||
|
||
public InformationMapping<SaBenchmarkingResults> getMapping() { | ||
return MAPPING; | ||
} | ||
|
||
static { | ||
MAPPING.set("original", TsData.class, source -> source.getOriginalSeries()); | ||
MAPPING.set("target", TsData.class, source -> source.getTarget()); | ||
MAPPING.set("result", TsData.class, source -> source.getBenchmarkedSeries()); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters