IT. Expert System.

Android Reference

Spline


android.util

Class Spline



  • public final class Spline
    extends Object
    Performs spline interpolation given a set of control points.
    • Method Detail

      • createMonotoneCubicSpline

        public static Spline createMonotoneCubicSpline(float[] x,
                                       float[] y)
        Creates a monotone cubic spline from a given set of control points. The spline is guaranteed to pass through each control point exactly. Moreover, assuming the control points are monotonic (Y is non-decreasing or non-increasing) then the interpolated values will also be monotonic. This function uses the Fritsch-Carlson method for computing the spline parameters. http://en.wikipedia.org/wiki/Monotone_cubic_interpolation
        Parameters:
        x - The X component of the control points, strictly increasing.
        y - The Y component of the control points, monotonic.
        Returns:
        Throws:
        IllegalArgumentException - if the X or Y arrays are null, have different lengths or have fewer than 2 values.
        IllegalArgumentException - if the control points are not monotonic.
      • interpolate

        public float interpolate(float x)
        Interpolates the value of Y = f(X) for given X. Clamps X to the domain of the spline.
        Parameters:
        x - The X value.
        Returns:
        The interpolated Y = f(X) value.
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        Overrides:
        toString in class Object
        Returns:
        a printable representation of this object.


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 232 / 159412815. Delta: 0.03885 с