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, uniform
java.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.SQLException
void init() throws java.sql.SQLException
java.sql.SQLException
double expect() throws java.sql.SQLException
java.sql.SQLException
void maximize() throws java.sql.SQLException
java.sql.SQLException
void download() throws java.sql.SQLException
java.sql.SQLException
void cleanup() throws java.sql.SQLException
java.sql.SQLException
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.