Codota Logo
GaussianGmm_F64.addCovariance
Code IndexAdd Codota to your IDE (free)

How to use
addCovariance
method
in
org.ddogleg.clustering.gmm.GaussianGmm_F64

Best Java code snippets using org.ddogleg.clustering.gmm.GaussianGmm_F64.addCovariance (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Point p =
  • Codota Iconnew Point(x, y)
  • Codota Iconnew Point()
  • Codota IconMouseEvent e;e.getPoint()
  • Smart code suggestions by Codota
}
origin: org.ddogleg/ddogleg

mixture.get(j).addCovariance(dx, pp.weights.get(j));
origin: lessthanoptimal/ddogleg

mixture.get(j).addCovariance(dx, pp.weights.get(j));
origin: lessthanoptimal/ddogleg

@Test
public void addCovariance() {
  GaussianGmm_F64 g = new GaussianGmm_F64(3);
  g.setMean(new double[]{4,3,6});
  Equation eq = new Equation();
  eq.process("Q = zeros(3,3)");
  for (int i = 0; i < 5; i++) {
    DMatrixRMaj x = RandomMatrices_DDRM.rectangle(3,1,rand);
    eq.alias(x,"x",0.4+i*0.1,"w");
    eq.process("Q = Q + w*x*x'");
    g.addCovariance(x.data,0.4+i*0.1);
  }
  DMatrixRMaj Q = eq.lookupDDRM("Q");
  assertTrue(MatrixFeatures_DDRM.isIdentical(Q, g.covariance, 1e-8));
}
org.ddogleg.clustering.gmmGaussianGmm_F64addCovariance

Javadoc

Helper function for computing Gaussian parameters. Adds the difference between point and mean to covariance, adjusted by the weight.

Popular methods of GaussianGmm_F64

  • <init>
    Declares internal data strucures
  • addMean
    Helper function for computing Gaussian parameters. Adds the point to mean and weight.
  • setMean
    Sets the mean to be the same as the provided point\
  • zero
    Sets the mean, covariance, and weight to zero
  • copy

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • getExternalFilesDir (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
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