Class RQPHelper
- java.lang.Object
-
- ai.libs.jaicore.ml.weka.rangequery.learner.intervaltree.util.RQPHelper
-
public class RQPHelper extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRQPHelper.IntervalAndHeader
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.Map.Entry<org.apache.commons.math3.geometry.euclidean.oned.Interval[],T>getEntry(org.apache.commons.math3.geometry.euclidean.oned.Interval[] interval, T tree)static RQPHelper.IntervalAndHeadermapWEKAToTree(weka.core.Instance data)Maps the WEKA query to a tree-friendly query while also preserving the header information of the query, this is important for M5 trees.static org.apache.commons.math3.geometry.euclidean.oned.Interval[]substituteInterval(org.apache.commons.math3.geometry.euclidean.oned.Interval[] original, org.apache.commons.math3.geometry.euclidean.oned.Interval toSubstitute, int index)
-
-
-
Method Detail
-
mapWEKAToTree
public static final RQPHelper.IntervalAndHeader mapWEKAToTree(weka.core.Instance data)
Maps the WEKA query to a tree-friendly query while also preserving the header information of the query, this is important for M5 trees.- Parameters:
data-- Returns:
-
substituteInterval
public static final org.apache.commons.math3.geometry.euclidean.oned.Interval[] substituteInterval(org.apache.commons.math3.geometry.euclidean.oned.Interval[] original, org.apache.commons.math3.geometry.euclidean.oned.Interval toSubstitute, int index)
-
getEntry
public static final <T> java.util.Map.Entry<org.apache.commons.math3.geometry.euclidean.oned.Interval[],T> getEntry(org.apache.commons.math3.geometry.euclidean.oned.Interval[] interval, T tree)
-
-