Codota Logo
FitByMeanStatistics.init
Code IndexAdd Codota to your IDE (free)

How to use
init
method
in
org.ddogleg.fitting.modelset.distance.FitByMeanStatistics

Best Java code snippets using org.ddogleg.fitting.modelset.distance.FitByMeanStatistics.init (Showing top 1 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
origin: lessthanoptimal/ddogleg

  @Test
  public void metric_and_prune() {
    LinkedList<PointIndex<Double>> inliers = new LinkedList<PointIndex<Double>>();

    for (int i = 0; i < 200; i++) {
      inliers.add(new PointIndex<Double>((double) i,i));
    }

    // randomize the inputs
    Collections.shuffle(inliers,rand);

    FitByMeanStatistics<double[],Double> fit = new FitByMeanStatistics<double[],Double>(1);

    fit.init(new DistanceFromMeanModel(), inliers);

    fit.computeStatistics();

    assertEquals(99.5, fit.getErrorMetric(), 1e-8);

    fit.prune();

    assertEquals(158, inliers.size());
  }
}
org.ddogleg.fitting.modelset.distanceFitByMeanStatisticsinit

Popular methods of FitByMeanStatistics

  • <init>
  • computeMean
    Computes the mean and standard deviation of the points from the model
  • computeStandardDeviation
  • computeStatistics
  • getErrorMetric
  • prune

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • getSharedPreferences (Context)
  • runOnUiThread (Activity)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • Table (org.hibernate.mapping)
    A relational table
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