public class InstancesGeometricOperations extends Object
Constructor and Description |
---|
InstancesGeometricOperations() |
Modifier and Type | Method and Description |
---|---|
static weka.core.Instance |
addInstances(weka.core.Instance i1,
weka.core.Instance i2)
Adds two instances.
|
static weka.core.Instance |
addInstances(weka.core.Instance i1,
weka.core.Instance i2,
boolean checkCompatibility)
Adds two instances.
|
static weka.core.Instance |
scale(weka.core.Instance inst,
double factor)
Scales the numeric attributes of the instance
|
static weka.core.Instance |
subtractInstances(weka.core.Instance i1,
weka.core.Instance i2)
Subtracts two instances.
|
static weka.core.Instance |
subtractInstances(weka.core.Instance i1,
weka.core.Instance i2,
boolean checkCompatibility)
Subtracts two instances.
|
public static weka.core.Instance scale(weka.core.Instance inst, double factor)
inst
- -- instancefactor
- -- scale factorpublic static weka.core.Instance addInstances(weka.core.Instance i1, weka.core.Instance i2) throws Exception
i1
- i2
- Exception
public static weka.core.Instance addInstances(weka.core.Instance i1, weka.core.Instance i2, boolean checkCompatibility) throws Exception
i1
- i2
- checkCompatibility
- -- defines whether the compatibility check of the instances is doneException
public static weka.core.Instance subtractInstances(weka.core.Instance i1, weka.core.Instance i2) throws Exception
i1
- i2
- Exception
public static weka.core.Instance subtractInstances(weka.core.Instance i1, weka.core.Instance i2, boolean checkCompatibility) throws Exception
i1
- i2
- checkCompatibility
- Exception
Copyright © 2020. All rights reserved.