io.gitlab.chaver.mining.patterns.measure.pattern.AnyConf 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.pattern;
import io.gitlab.chaver.mining.patterns.measure.Measure;
import io.gitlab.chaver.mining.patterns.measure.operand.MeasureOperand;
import java.util.Set;
import static io.gitlab.chaver.mining.patterns.measure.MeasureFactory.*;
import static io.gitlab.chaver.mining.patterns.measure.operand.OperandFactory.div;
/**
* Any-confidence measure (see Omiecinski - Alternative interest measures for mining associations in database)
*/
public class AnyConf extends PatternMeasure {
private final MeasureOperand op = div(freq(), minFreq());
@Override
public Set maxConvert() {
return op.maxConvert();
}
@Override
public Set minConvert() {
return op.minConvert();
}
@Override
public String getId() {
return "anyconf";
}
}