|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opensha.commons.data.xyz.AbstractXYZ_DataSet
org.opensha.commons.data.xyz.ArbDiscrXYZ_DataSet
public class ArbDiscrXYZ_DataSet
Title: ArbDiscrXYZ_DataSet
Description: This class creates a vector for the XYZ dataset. Points can be arbitrarily distributed. This class is backed by the Point2D class and a HashMap.
Copyright: Copyright (c) 2002
Company:
| Constructor Summary | |
|---|---|
ArbDiscrXYZ_DataSet()
|
|
| Method Summary | |
|---|---|
Object |
clone()
|
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. |
ArbDiscrXYZ_DataSet |
copy()
Returns a shallow copy of this XYZ_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. |
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). |
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. |
static ArbDiscrXYZ_DataSet |
loadXYZFile(String fileName)
|
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. |
int |
size()
Returns the size of this dataset. |
| Methods inherited from class org.opensha.commons.data.xyz.AbstractXYZ_DataSet |
|---|
abs, add, exp, exp, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getValueList, log, log10, pow, scale, setAll, writeXYZFile, writeXYZFile |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArbDiscrXYZ_DataSet()
| Method Detail |
|---|
public void set(Point2D point,
double z)
XYZ_DataSet
point - - the point at which to setz - - the value to set
public void set(double x,
double y,
double z)
XYZ_DataSet
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
public void set(int index,
double z)
XYZ_DataSet
index - - the index of the point to be setz - - the value to setpublic double get(Point2D point)
XYZ_DataSet
point - - the point at which to get
public double get(double x,
double y)
XYZ_DataSet
x - - the x value of the point at which to gety - - the y value of the point at which to get
public double get(int index)
XYZ_DataSet
index - - the index of the point at which to get
public Point2D getPoint(int index)
XYZ_DataSet
index - - the index of the point to get
public int indexOf(Point2D point)
XYZ_DataSet
point - - the point at which to return the index
public boolean contains(Point2D point)
XYZ_DataSet
point - - the point to check
point is not null and is contained by the dataset, false otherwise
public boolean contains(double x,
double y)
XYZ_DataSet
x - - the x value of the point to checky - - the y value of the point to check
public int size()
XYZ_DataSet
public Object clone()
clone in class Objectpublic ArbDiscrXYZ_DataSet copy()
XYZ_DataSetXYZ_DataSet. Internal points are not cloned.
XYZ_DataSet
public int indexOf(double x,
double y)
XYZ_DataSet
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
public List<Point2D> getPointList()
XYZ_DataSet
getPointList in interface XYZ_DataSetgetPointList in class AbstractXYZ_DataSet
public static ArbDiscrXYZ_DataSet loadXYZFile(String fileName)
throws FileNotFoundException,
IOException
FileNotFoundException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||