class Regression extends java.lang.Object
Create a regression Chart.
You can create a linear regression chart:
def points = Geometry.createRandomPoints(new Bounds(0,0,100,100).geometry, 10) List data = points.geometries.collect{pt -> [pt.x,pt.y] } Chart chart = Regression.linear(data)
Or you can create a power regression chart:
def points = Geometry.createRandomPoints(new Bounds(0,0,100,100).geometry, 10) List data = points.geometries.collect{pt -> [pt.x,pt.y] } Chart chart = Regression.power(data)
Constructor and description |
---|
Regression
() |
Type Params | Return Type | Name and description |
---|---|---|
|
static Chart |
linear(Map options, java.util.List data) Create a linear regression Chart |
|
static Chart |
power(Map options, java.util.List data) Create a power regression Chart |
|
static Chart |
regression(Map options, java.util.List data) Create a regression Chart |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Create a linear regression Chart
options
- Named parameter options
data
- A List of data where each item is a List with two items.Create a power regression Chart
options
- Named parameter options
data
- A List of data where each item is a List with two items.Create a regression Chart
options
- Named parameter options
data
- A List of data where each item is a List with two items.