|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface XYZ_DataSet
Title: XYZ_DataSetAPI
Description: This interface defines the DataSet for the X,Y and Z.
This is the parent interface for GeographicDataSetAPI, which
should be used for any Geographic (Location based) XYZ datasets.
Copyright: Copyright (c) 2010
Company:
| Method Summary | |
|---|---|
void |
abs()
Takes the absolute value of the each value in the dataset. |
void |
add(double value)
The given value is added to each value in this dataset. |
boolean |
contains(double x,
double y)
Returns true if the dataset contains the given point, false otherwise. |
boolean |
contains(Point2D point)
Returns true if the dataset contains the given point, false otherwise. |
XYZ_DataSet |
copy()
Returns a shallow copy of this XYZ_DataSet. |
void |
exp()
Euler's number e raised to the power of each value in the dataset. |
void |
exp(double base)
Given number raised to the power of each value in the dataset. |
double |
get(double x,
double y)
Gets the value at the given point. |
double |
get(int index)
Gets the value at the given index. |
double |
get(Point2D point)
Gets the value at the given point. |
double |
getMaxX()
Returns the maximum X value in this dataset. |
double |
getMaxY()
Returns the maximum Y value in this dataset. |
double |
getMaxZ()
Returns the maximum Z value in this dataset. |
double |
getMinX()
Returns the minimum X value in this dataset. |
double |
getMinY()
Returns the minimum Y value in this dataset. |
double |
getMinZ()
Returns the minimum Z value in this dataset. |
Point2D |
getPoint(int index)
Gets the point at the given index. |
List<Point2D> |
getPointList()
Returns a list of all points in the correct order (as defined by indexOf). |
List<Double> |
getValueList()
Returns a list of all values in the correct order (as defined by indexOf). |
int |
indexOf(double x,
double y)
Returns the index of the given point, or -1 if it isn't in the dataset. |
int |
indexOf(Point2D point)
Returns the index of the given point, or -1 if it isn't in the dataset. |
void |
log()
Takes the natural log of each value in the dataset. |
void |
log10()
Takes the natural log base 10 of each value in the dataset. |
void |
pow(double pow)
Each value in this dataset is raised to the given power. |
void |
scale(double scalar)
Each value in this dataset is scaled by the given scalar. |
void |
set(double x,
double y,
double z)
Sets the value at the given point. |
void |
set(int index,
double z)
Sets the value at the given index. |
void |
set(Point2D point,
double z)
Sets the value at the given point. |
void |
setAll(XYZ_DataSet dataset)
Sets every point in this dataset from the given dataset. |
int |
size()
Returns the size of this dataset. |
| Method Detail |
|---|
double getMinX()
double getMaxX()
double getMinY()
double getMaxY()
double getMinZ()
double getMaxZ()
void set(Point2D point,
double z)
point - - the point at which to setz - - the value to set
NullPointerException - if point is null
void set(double x,
double y,
double z)
x - - the x value of the point at which to sety - - the y value of the point at which to setz - - the value to set
void set(int index,
double z)
index - - the index of the point to be setz - - the value to set
IndexOutOfBoundsException - if index < 0 or index >= size()double get(Point2D point)
point - - the point at which to get
double get(double x,
double y)
x - - the x value of the point at which to gety - - the y value of the point at which to get
double get(int index)
index - - the index of the point at which to get
Point2D getPoint(int index)
index - - the index of the point to get
IndexOutOfBoundsException - if index < 0 or index >= size()int indexOf(Point2D point)
point - - the point at which to return the index
int indexOf(double x,
double y)
x - - the x value of the point at which to return the indexy - - the y value of the point at which to return the index
boolean contains(Point2D point)
point - - the point to check
point is not null and is contained by the dataset, false otherwise
boolean contains(double x,
double y)
x - - the x value of the point to checky - - the y value of the point to check
int size()
void setAll(XYZ_DataSet dataset)
dataset - - dataset who's values are to be set
NullPointerException - if dataset is nullList<Point2D> getPointList()
List<Double> getValueList()
XYZ_DataSet copy()
XYZ_DataSet. Internal points are not cloned.
XYZ_DataSetvoid abs()
map - void log()
void log10()
void exp()
void exp(double base)
void pow(double pow)
pow - - the power with which to raise each value in the datasetvoid scale(double scalar)
scalar - - the double value with which to scale each value in the datasetvoid add(double value)
value - - the double value to add to each value in the dataset
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||