|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.display2d.TestData
public class TestData
Title: TestData Description: Static methods to generate test data for various programs. Copyright: Copyright (c) 2005 Gould, Christian, and Tobochnik
Constructor Summary | |
---|---|
TestData()
|
Method Summary | |
---|---|
static double[][][] |
circulatingVectorField(int nx,
int ny)
|
static double |
dipole(double x,
double y)
Dipole distribution with poles at +1 and -1 on the x axis. |
static double[][][] |
dipoleScalarField(GridPointData pointdata)
Generate a dipole scalar field. |
static double[] |
dipoleVector(double x,
double y)
Dipole field with poles at +1 and -1 on the x axis. |
static double[][][] |
dipoleVectorField(int nx,
int ny,
double xmin,
double xmax,
double ymin,
double ymax)
|
static double |
gaussian(double x,
double y,
double sigma)
A 2D Gaussian distribution function centered at x=0 and y=0 and standard deviation of 1. |
static double[][][] |
gaussianScalarField(GridPointData pointdata)
Generate a gaussian scalar field. |
static void |
randomScalarField(GridPointData pointdata)
Generate a random scalar field. |
static double |
saddle(double x,
double y)
Saddle function centered at x=0 and y=0. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestData()
Method Detail |
---|
public static double dipole(double x, double y)
public static double gaussian(double x, double y, double sigma)
public static double saddle(double x, double y)
public static double[][][] dipoleScalarField(GridPointData pointdata)
public static double[][][] gaussianScalarField(GridPointData pointdata)
public static void randomScalarField(GridPointData pointdata)
public static double[] dipoleVector(double x, double y)
public static double[][][] circulatingVectorField(int nx, int ny)
public static double[][][] dipoleVectorField(int nx, int ny, double xmin, double xmax, double ymin, double ymax)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |