comment some code

This commit is contained in:
Антон Скалкин 2023-04-03 22:49:23 +04:00
parent a81149bf01
commit 2b21708d9d

View File

@ -104,15 +104,15 @@ public class FTransform extends Method {
return FTransformModel.getAvailableParameters();
}
private AComponent findFuzzyValueByPrevious(List<AComponent> fuzzyTimeSeries, AComponent currentFuzzyValue) {
Map<AComponent, Integer> mostFrequentValues = new HashMap<>();
for (int i = 0; i < fuzzyTimeSeries.size() - 1; i++) {
if (fuzzyTimeSeries.get(i).equals(currentFuzzyValue)) {
mostFrequentValues.put(fuzzyTimeSeries.get(i + 1), mostFrequentValues.getOrDefault(fuzzyTimeSeries.get(i + 1), 0) + 1);
}
}
mostFrequentValues.entrySet().stream()
}
// private AComponent findFuzzyValueByPrevious(List<AComponent> fuzzyTimeSeries, AComponent currentFuzzyValue) {
// Map<AComponent, Integer> mostFrequentValues = new HashMap<>();
// for (int i = 0; i < fuzzyTimeSeries.size() - 1; i++) {
// if (fuzzyTimeSeries.get(i).equals(currentFuzzyValue)) {
// mostFrequentValues.put(fuzzyTimeSeries.get(i + 1), mostFrequentValues.getOrDefault(fuzzyTimeSeries.get(i + 1), 0) + 1);
// }
// }
// mostFrequentValues.entrySet().stream()
// }
@Override
public String getName() {