Codota Logo
SeedFromKMeans_F64
Code IndexAdd Codota to your IDE (free)

How to use
SeedFromKMeans_F64
in
org.ddogleg.clustering.gmm

Best Java code snippets using org.ddogleg.clustering.gmm.SeedFromKMeans_F64 (Showing top 4 results out of 315)

  • Common ways to obtain SeedFromKMeans_F64
private void myMethod () {
SeedFromKMeans_F64 s =
  • Codota IconStandardKMeans.F64 kmeans;new SeedFromKMeans_F64(kmeans)
  • Smart code suggestions by Codota
}
origin: org.ddogleg/ddogleg

/**
 * <p>
 * High level interface for creating GMM cluster.  If more flexibility is needed (e.g. custom seeds)
 * then create and instance of {@link ExpectationMaximizationGmm_F64} directly
 * </p>
 *
 * <p>WARNING: DEVELOPMENTAL AND IS LIKELY TO FAIL HORRIBLY</p>
 *
 * @param maxIterations Maximum number of iterations it will perform.
 * @param maxConverge Maximum iterations allowed before convergence.  Re-seeded if it doesn't converge.
 * @param convergeTol Distance based convergence tolerance.  Try 1e-8
 * @return ExpectationMaximizationGmm_F64
 */
public static ExpectationMaximizationGmm_F64 gaussianMixtureModelEM_F64(
    int maxIterations, int maxConverge , double convergeTol) {
  StandardKMeans_F64 kmeans = kMeans_F64(null,maxIterations,maxConverge,convergeTol);
  SeedFromKMeans_F64 seeds = new SeedFromKMeans_F64(kmeans);
  return new ExpectationMaximizationGmm_F64(maxIterations,convergeTol,seeds);
}
origin: lessthanoptimal/ddogleg

SeedFromKMeans_F64 alg = new SeedFromKMeans_F64(createKMeans());
alg.init(2,234234);
seeds.add( new GaussianGmm_F64(2));
alg.selectSeeds(points,seeds);
origin: lessthanoptimal/ddogleg

/**
 * <p>
 * High level interface for creating GMM cluster.  If more flexibility is needed (e.g. custom seeds)
 * then create and instance of {@link ExpectationMaximizationGmm_F64} directly
 * </p>
 *
 * <p>WARNING: DEVELOPMENTAL AND IS LIKELY TO FAIL HORRIBLY</p>
 *
 * @param maxIterations Maximum number of iterations it will perform.
 * @param maxConverge Maximum iterations allowed before convergence.  Re-seeded if it doesn't converge.
 * @param convergeTol Distance based convergence tolerance.  Try 1e-8
 * @return ExpectationMaximizationGmm_F64
 */
public static ExpectationMaximizationGmm_F64 gaussianMixtureModelEM_F64(
    int maxIterations, int maxConverge , double convergeTol) {
  StandardKMeans_F64 kmeans = kMeans_F64(null,maxIterations,maxConverge,convergeTol);
  SeedFromKMeans_F64 seeds = new SeedFromKMeans_F64(kmeans);
  return new ExpectationMaximizationGmm_F64(maxIterations,convergeTol,seeds);
}
origin: lessthanoptimal/ddogleg

  @Override
  public ComputeClusters<double[]> createClustersAlg( boolean hint ) {

    if( hint ) {
      return new ExpectationMaximizationGmm_F64(1000, 1e-8, seeds);
    } else {
      InitializeStandard_F64 kseeds = new InitializeStandard_F64();
      StandardKMeans_F64 kmeans = new StandardKMeans_F64(1000,1000,1e-8,kseeds);
      SeedFromKMeans_F64 seeds = new SeedFromKMeans_F64(kmeans);
      return new ExpectationMaximizationGmm_F64(1000, 1e-8, seeds);
    }
  }
}
org.ddogleg.clustering.gmmSeedFromKMeans_F64

Javadoc

Initializes the mixture models by applying K-Means first. The mean will be the center of the clusters, variance computed from its members, and weight based on the total number of points assigned.

Most used methods

  • <init>
  • init
  • selectSeeds

Popular in Java

  • Making http post requests using okhttp
  • findViewById (Activity)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • Menu (java.awt)
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • Hashtable (java.util)
    Hashtable is a synchronized implementation of Map. All optional operations are supported.Neither key
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now