|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectptolemy.actor.lib.comm.HuffmanBasic.Node
public static class HuffmanBasic.Node
A class that defines the node in binary tree that is used to construct the codebook of Huffman code.
| Field Summary | |
|---|---|
java.lang.String |
huffmanCode
The huffman code of this node. |
int |
indexInArray
The corresponding index in the pmf array of this node. |
HuffmanBasic.Node |
leftChild
The left child of the node. |
double |
probability
The probability of the node. |
HuffmanBasic.Node |
rightChild
The right child of the node. |
| Constructor Summary | |
|---|---|
HuffmanBasic.Node(double prob,
int index)
Construct the node with the given probability value and its index in the pmf array. |
|
HuffmanBasic.Node(HuffmanBasic.Node left,
HuffmanBasic.Node right)
Construct the parent node given the left child and the right child. |
|
| Method Summary |
|---|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public double probability
public int indexInArray
public HuffmanBasic.Node leftChild
public HuffmanBasic.Node rightChild
public java.lang.String huffmanCode
| Constructor Detail |
|---|
public HuffmanBasic.Node(double prob,
int index)
prob - The given probability value.index - The corresponding index in the pmf array.
public HuffmanBasic.Node(HuffmanBasic.Node left,
HuffmanBasic.Node right)
left - The left child.right - The right child.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||