public class ClusMogSQL extends ClusMog
| Modifier and Type | Field and Description |
|---|---|
(package private) java.sql.Connection |
conn
database connection
|
(package private) int |
uniq
unique ID for generating working table names
|
| Constructor and Description |
|---|
ClusMogSQL(java.sql.Connection conn)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
cleanup()
Clean up working tables after use.
|
void |
clusterSQL(int n,
double[] center,
int ns,
double[] sample)
Compute/recover the parameters of a mixture-of-Gaussian distribution
from given independent samples, using SQL.
|
(package private) void |
download()
Download the computed cluster configuration.
|
(package private) double |
expect()
(Re-)compute cluster centers while holding sample-to-cluster assignment fixed.
|
(package private) void |
init()
Initialize the EM (expectation-maximization) iterations.
|
(package private) void |
maximize()
(Re-)compute sample-to-cluster assignment while holding cluster centers fixed.
|
void |
setUnique(int uniq)
Set unique ID for this object.
|
cluster, computeWeights, expectation, initEM, maximization, measure, printMog, random, setCenters, setSamples, uniformjava.sql.Connection conn
int uniq
public void setUnique(int uniq)
public void clusterSQL(int n,
double[] center,
int ns,
double[] sample)
throws java.sql.SQLException
n - number of clusters (Gaussian components) to outputcenter - initial cluster centers for iterative refinementns - number of input samplessample - input samples; will be sorted in ascending order during usejava.sql.SQLExceptionvoid init() throws java.sql.SQLException
java.sql.SQLExceptiondouble expect()
throws java.sql.SQLException
java.sql.SQLExceptionvoid maximize()
throws java.sql.SQLException
java.sql.SQLExceptionvoid download()
throws java.sql.SQLException
java.sql.SQLExceptionvoid cleanup()
throws java.sql.SQLException
java.sql.SQLExceptionApache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.