public class Transform
extends java.lang.Object
Constructor and Description |
---|
Transform(Sphinx3Loader loader,
int nrOfClusters) |
Modifier and Type | Method and Description |
---|---|
float[][][][] |
getAs()
Used for access to A matrix.
|
float[][][] |
getBs()
Used for access to B matrix.
|
void |
load(java.lang.String filePath)
Read the transformation from a file
|
void |
store(java.lang.String filePath,
int index)
Writes the transformation to file in a format that could further be used
in Sphinx3 and Sphinx4.
|
void |
update(Stats stats)
Stores in current object a transform generated on the provided stats.
|
public Transform(Sphinx3Loader loader, int nrOfClusters)
public float[][][][] getAs()
public float[][][] getBs()
public void store(java.lang.String filePath, int index) throws java.lang.Exception
filePath
- path to store transform matrixindex
- index of transform to storejava.lang.Exception
- if something went wrongpublic void load(java.lang.String filePath) throws java.lang.Exception
filePath
- file path to load transformjava.lang.Exception
- if something went wrongpublic void update(Stats stats)
stats
- provided stats that were previously collected from Result
objects.