Tabnine Logo
Kurtosis
Code IndexAdd Tabnine to your IDE (free)

How to use
Kurtosis
in
org.apache.commons.math3.stat.descriptive.moment

Best Java code snippets using org.apache.commons.math3.stat.descriptive.moment.Kurtosis (Showing top 20 results out of 315)

origin: jtablesaw/tablesaw

  @Override
  public Double summarize(NumericColumn<?> column) {
    double[] data = removeMissing(column);
    return new Kurtosis().evaluate(data, 0, data.length);
  }
};
origin: org.apache.commons/commons-math3

/**
 * {@inheritDoc}
 */
@Override
public Kurtosis copy() {
  Kurtosis result = new Kurtosis();
  // No try-catch because args are guaranteed non-null
  copy(this, result);
  return result;
}
origin: org.apache.commons/commons-math3

/**
 * Copies source to dest.
 * <p>Neither source nor dest can be null.</p>
 *
 * @param source Kurtosis to copy
 * @param dest Kurtosis to copy to
 * @throws NullArgumentException if either source or dest is null
 */
public static void copy(Kurtosis source, Kurtosis dest)
  throws NullArgumentException {
  MathUtils.checkNotNull(source);
  MathUtils.checkNotNull(dest);
  dest.setData(source.getDataRef());
  dest.moment = source.moment.copy();
  dest.incMoment = source.incMoment;
}
origin: zavtech/morpheus-core

public static void main(String[] args) {
  final double[] values = new java.util.Random().doubles(5000).toArray();
  final Kurtosis stat1 = new Kurtosis();
  final org.apache.commons.math3.stat.descriptive.moment.Kurtosis stat2 = new org.apache.commons.math3.stat.descriptive.moment.Kurtosis();
  for (double value : values) {
    stat1.add(value);
    stat2.increment(value);
  }
  final double result1 = stat1.getValue();
  final double result2 = stat2.getResult();
  if (result1 != result2) {
    throw new RuntimeException("Error: " + result1 + " != " + result2);
  }
}
origin: joinery/joinery-dataframe

  public Kurtosis() {
    super(new org.apache.commons.math3.stat.descriptive.moment.Kurtosis());
  }
}
origin: org.apache.commons/commons-math3

/**
 * Copy constructor, creates a new {@code Kurtosis} identical
 * to the {@code original}
 *
 * @param original the {@code Kurtosis} instance to copy
 * @throws NullArgumentException if original is null
 */
public Kurtosis(Kurtosis original) throws NullArgumentException {
  copy(original, this);
}
origin: org.apache.commons/commons-math3

if (test(values, begin, length) && length > 3) {
origin: cardillo/joinery

  public Kurtosis() {
    super(new org.apache.commons.math3.stat.descriptive.moment.Kurtosis());
  }
}
origin: io.virtdata/virtdata-lib-realer

/**
 * Copy constructor, creates a new {@code Kurtosis} identical
 * to the {@code original}
 *
 * @param original the {@code Kurtosis} instance to copy
 * @throws NullArgumentException if original is null
 */
public Kurtosis(Kurtosis original) throws NullArgumentException {
  copy(original, this);
}
origin: geogebra/geogebra

if (test(values, begin, length) && length > 3) {
origin: prestodb/presto

@Override
public Number getExpectedValue(int start, int length)
{
  if (length < 4) {
    return null;
  }
  double[] values = new double[length];
  for (int i = 0; i < length; i++) {
    values[i] = start + i;
  }
  Kurtosis kurtosis = new Kurtosis();
  return kurtosis.evaluate(values);
}
origin: io.virtdata/virtdata-lib-realer

/**
 * {@inheritDoc}
 */
@Override
public Kurtosis copy() {
  Kurtosis result = new Kurtosis();
  // No try-catch because args are guaranteed non-null
  copy(this, result);
  return result;
}
origin: osmlab/atlas

  return new GeometricMean();
case Kurtosis:
  return new Kurtosis();
case Max:
  return new Max();
origin: geogebra/geogebra

/**
 * Copies source to dest.
 * <p>Neither source nor dest can be null.</p>
 *
 * @param source Kurtosis to copy
 * @param dest Kurtosis to copy to
 * @throws NullArgumentException if either source or dest is null
 */
public static void copy(Kurtosis source, Kurtosis dest)
  throws NullArgumentException {
  MathUtils.checkNotNull(source);
  MathUtils.checkNotNull(dest);
  dest.setData(source.getDataRef());
  dest.moment = source.moment.copy();
  dest.incMoment = source.incMoment;
}
origin: geogebra/geogebra

/**
 * Copy constructor, creates a new {@code Kurtosis} identical
 * to the {@code original}
 *
 * @param original the {@code Kurtosis} instance to copy
 * @throws NullArgumentException if original is null
 */
public Kurtosis(Kurtosis original) throws NullArgumentException {
  copy(original, this);
}
origin: io.virtdata/virtdata-lib-realer

if (test(values, begin, length) && length > 3) {
origin: prestodb/presto

@Override
public Number getExpectedValue(int start, int length)
{
  if (length < 4) {
    return null;
  }
  double[] values = new double[length];
  for (int i = 0; i < length; i++) {
    values[i] = start + i;
  }
  Kurtosis kurtosis = new Kurtosis();
  return kurtosis.evaluate(values);
}
origin: geogebra/geogebra

/**
 * {@inheritDoc}
 */
@Override
public Kurtosis copy() {
  Kurtosis result = new Kurtosis();
  // No try-catch because args are guaranteed non-null
  copy(this, result);
  return result;
}
origin: io.virtdata/virtdata-lib-realer

/**
 * Copies source to dest.
 * <p>Neither source nor dest can be null.</p>
 *
 * @param source Kurtosis to copy
 * @param dest Kurtosis to copy to
 * @throws NullArgumentException if either source or dest is null
 */
public static void copy(Kurtosis source, Kurtosis dest)
  throws NullArgumentException {
  MathUtils.checkNotNull(source);
  MathUtils.checkNotNull(dest);
  dest.setData(source.getDataRef());
  dest.moment = source.moment.copy();
  dest.incMoment = source.incMoment;
}
origin: tech.tablesaw/tablesaw-core

  @Override
  public Double summarize(NumericColumn<?> column) {
    double[] data = removeMissing(column);
    return new Kurtosis().evaluate(data, 0, data.length);
  }
};
org.apache.commons.math3.stat.descriptive.momentKurtosis

Javadoc

Computes the Kurtosis of the available values.

We use the following (unbiased) formula to define kurtosis:

kurtosis = { [n(n+1) / (n -1)(n - 2)(n-3)] sum[(x_i - mean)^4] / std^4 } - [3(n-1)^2 / (n-2)(n-3)]

where n is the number of values, mean is the Mean and std is the StandardDeviation

Note that this statistic is undefined for n < 4. Double.Nan is returned when there is not sufficient data to compute the statistic. Note that Double.NaN may also be returned if the input includes NaN and / or infinite values.

Note that this implementation is not synchronized. If multiple threads access an instance of this class concurrently, and at least one of the threads invokes the increment() or clear() method, it must be synchronized externally.

Most used methods

  • <init>
    Copy constructor, creates a new Kurtosis identical to the original
  • evaluate
    Returns the kurtosis of the entries in the specified portion of the input array. See Kurtosis for d
  • copy
    Copies source to dest.Neither source nor dest can be null.
  • getDataRef
  • setData
  • test
  • getResult
  • increment
    Note that when #Kurtosis(FourthMoment) is used to create a Variance, this method does nothing. In th
  • clear

Popular in Java

  • Making http requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • getSharedPreferences (Context)
  • getContentResolver (Context)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now