public class UtilFeature
extends java.lang.Object
| Constructor and Description |
|---|
UtilFeature() |
| Modifier and Type | Method and Description |
|---|---|
static TupleDesc_F64 |
combine(java.util.List<TupleDesc_F64> inputs,
TupleDesc_F64 combined)
Concats the list of tuples together into one big feature.
|
static <TD extends TupleDesc> |
createQueue(DescribeRegionPoint<?,TD> detDesc,
int initialMax)
Creates a FastQueue and declares new instances of the descriptor using the provided
DetectDescribePoint. |
static <TD extends TupleDesc> |
createQueue(DetectDescribeMulti<?,TD> detDesc,
int initialMax)
Creates a FastQueue and declares new instances of the descriptor using the provided
DetectDescribePoint. |
static <TD extends TupleDesc> |
createQueue(DetectDescribePoint<?,TD> detDesc,
int initialMax)
Creates a FastQueue and declares new instances of the descriptor using the provided
DetectDescribePoint. |
static void |
normalizeL2(TupleDesc_F64 desc)
Normalized the tuple such that the L2-norm is equal to 1.
|
static void |
normalizeSumOne(TupleDesc_F64 desc)
Normalized the tuple such that it's sum is equal to 1.
|
public static <TD extends TupleDesc> org.ddogleg.struct.FastQueue<TD> createQueue(DescribeRegionPoint<?,TD> detDesc, int initialMax)
DetectDescribePoint. The queue will have declareInstance set to true, otherwise
why would you be using this function?public static <TD extends TupleDesc> org.ddogleg.struct.FastQueue<TD> createQueue(DetectDescribePoint<?,TD> detDesc, int initialMax)
DetectDescribePoint. The queue will have declareInstance set to true, otherwise
why would you be using this function?public static <TD extends TupleDesc> org.ddogleg.struct.FastQueue<TD> createQueue(DetectDescribeMulti<?,TD> detDesc, int initialMax)
DetectDescribePoint. The queue will have declareInstance set to true, otherwise
why would you be using this function?public static TupleDesc_F64 combine(java.util.List<TupleDesc_F64> inputs, TupleDesc_F64 combined)
inputs - List of tuples.combined - Storage for combined output. If null a new instance will be declared.public static void normalizeL2(TupleDesc_F64 desc)
Normalized the tuple such that the L2-norm is equal to 1. This is also often referred to as the Euclidean or frobenius (all though that's a matrix norm).
value[i] = value[i]/sqrt(sum(value[j]*value[j], for all j))
desc - tuplepublic static void normalizeSumOne(TupleDesc_F64 desc)
Normalized the tuple such that it's sum is equal to 1.
value[i] = value[i]/sqrt(sum(value[j], for all j))
desc - tuple