public class VQ
extends java.lang.Object
Constructor and Description |
---|
VQ() |
Modifier and Type | Method and Description |
---|---|
static int |
index(float[] in,
float[] codebook,
int len,
int entries)
Finds the index of the entry in a codebook that best matches the input.
|
static int |
index(float in,
float[] codebook,
int entries)
Finds the index of the entry in a codebook that best matches the input.
|
static void |
nbest_sign(float[] in,
int offset,
float[] codebook,
int len,
int entries,
float[] E,
int N,
int[] nbest,
float[] best_dist)
Finds the indices of the n-best entries in a codebook with sign
|
static void |
nbest(float[] in,
int offset,
float[] codebook,
int len,
int entries,
float[] E,
int N,
int[] nbest,
float[] best_dist)
Finds the indices of the n-best entries in a codebook
|
public static final int index(float in, float[] codebook, int entries)
in
- - the value to compare.codebook
- - the list of values to search through for the best match.entries
- - the size of the codebook.public static final int index(float[] in, float[] codebook, int len, int entries)
in
- - the vector to compare.codebook
- - the list of values to search through for the best match.len
- - the size of the vector.entries
- - the size of the codebook.public static final void nbest(float[] in, int offset, float[] codebook, int len, int entries, float[] E, int N, int[] nbest, float[] best_dist)
in
- offset
- codebook
- len
- entries
- E
- N
- nbest
- best_dist
- public static final void nbest_sign(float[] in, int offset, float[] codebook, int len, int entries, float[] E, int N, int[] nbest, float[] best_dist)
in
- offset
- codebook
- len
- entries
- E
- N
- nbest
- best_dist
- Copyright © 1999-2004 Wimba S.A. All Rights Reserved.