Class Comparator

java.lang.Object
org.scijava.AbstractContextual
org.scijava.command.ContextCommand
sc.fiji.snt.analysis.sholl.math.Comparator
All Implemented Interfaces:
Runnable, org.scijava.Cancelable, org.scijava.command.Command, org.scijava.Contextual, org.scijava.plugin.SciJavaPlugin

public class Comparator extends org.scijava.command.ContextCommand
Compares two profiles statistically.
Author:
Tiago Ferreira
  • Constructor Summary

    Constructors
    Constructor
    Description
    Comparator(Profile profile1, Profile profile2)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    Computes the p-value, or observed significance level, of a two-sample Kolmogorov-Smirnov test evaluating the null hypothesis that x and y are samples drawn from the same probability distribution.
    org.apache.commons.math3.stat.regression.SimpleRegression
     
    void
    run()
     

    Methods inherited from class org.scijava.command.ContextCommand

    cancel, getCancelReason, isCanceled

    Methods inherited from class org.scijava.AbstractContextual

    context, getContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.scijava.Contextual

    setContext
  • Constructor Details

  • Method Details

    • run

      public void run() throws org.scijava.NullContextException
      Throws:
      org.scijava.NullContextException
    • getRegression

      public org.apache.commons.math3.stat.regression.SimpleRegression getRegression()
    • getKSTest

      public double getKSTest()
      Computes the p-value, or observed significance level, of a two-sample Kolmogorov-Smirnov test evaluating the null hypothesis that x and y are samples drawn from the same probability distribution.
      Returns:
      the p-value associated with the null hypothesis that the two profiles represent samples from the same distribution