public class EntropyVector
extends java.lang.Object
Use of this code is free for academic, education, research and other non-profit making uses only.
Modifier and Type | Class and Description |
---|---|
protected static class |
EntropyVector.TableValue
Vector entries.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,EntropyVector.TableValue> |
table
Map holding labeled vector values.
|
Constructor and Description |
---|
EntropyVector(ContextVector v)
Create an entropy vector from a context vector.
|
Modifier and Type | Method and Description |
---|---|
static double |
entropy(java.lang.String s,
EntropyVector v)
Return entropy for labeled table entry.
|
static double |
inverse(java.lang.String s,
EntropyVector v)
Return inverse for labeled table entry.
|
static double |
probability(java.lang.String s,
EntropyVector v)
Return probability for labeled table entry.
|
protected java.util.Map<java.lang.String,EntropyVector.TableValue> table
public EntropyVector(ContextVector v)
v
- uk.ac.man.cs.choif.extend.structure.ContextVectorpublic static double entropy(java.lang.String s, EntropyVector v)
s
- Entry name.v
- Entropy vector.public static double inverse(java.lang.String s, EntropyVector v)
s
- Entry name.v
- Entropy vector.public static double probability(java.lang.String s, EntropyVector v)
s
- Entry name.v
- Entropy vector.