|
Gephi Toolkit Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gephi.ranking.api.Interpolator
public abstract class Interpolator
Abstract clas that defines the single interpolate(float) method. This
abstract class is implemented by built-in interpolators.
| Nested Class Summary | |
|---|---|
static class |
Interpolator.BezierInterpolator
Bezier curve interpolator. |
| Field Summary | |
|---|---|
static Interpolator |
LINEAR
Linear interpolation x = interpolate(x) |
static Interpolator |
LOG2
Log2 interpolation Math.log(1 + x)/Math.log(2) = interpolate(x) |
| Constructor Summary | |
|---|---|
Interpolator()
|
|
| Method Summary | |
|---|---|
abstract float |
interpolate(float x)
This function takes an input value between 0 and 1 and returns another value, also between 0 and 1. |
static Interpolator |
newBezierInterpolator(float px1,
float py1,
float px2,
float py2)
Builds a bezier interpolator with two control points (px1, py1) and (px2, py2). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Interpolator LINEAR
x = interpolate(x)
public static final Interpolator LOG2
Math.log(1 + x)/Math.log(2) = interpolate(x)
| Constructor Detail |
|---|
public Interpolator()
| Method Detail |
|---|
public static Interpolator newBezierInterpolator(float px1,
float py1,
float px2,
float py2)
px1 - the x-coordinate of first control point, between [0, 1]py1 - the y-coordinate of first control point, between [0, 1]px2 - the x-coordinate of second control point, between [0, 1]py2 - the y-coordinate of second control point, between [0, 1]
public abstract float interpolate(float x)
x - a value between 0 and 1
|
Gephi Toolkit Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||