io.gitlab.chaver.mining.patterns.measure.operand.MeasureOperand Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of data-mining Show documentation
Show all versions of data-mining Show documentation
Data mining with Choco solver
/*
* This file is part of io.gitlab.chaver:data-mining (https://gitlab.com/chaver/data-mining)
*
* Copyright (c) 2022, IMT Atlantique
*
* Licensed under the MIT license.
*
* See LICENSE file in the project root for full license information.
*/
package io.gitlab.chaver.mining.patterns.measure.operand;
import io.gitlab.chaver.mining.patterns.measure.Measure;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
public interface MeasureOperand {
Set maxConvert();
Set minConvert();
static Set maxConvert(Collection mSet) {
Set skyM = new HashSet<>();
mSet.forEach(m -> skyM.addAll(m.maxConvert()));
return skyM;
}
static Set minConvert(Collection mSet) {
Set skyM = new HashSet<>();
mSet.forEach(m -> skyM.addAll(m.minConvert()));
return skyM;
}
}