java.lang.Object
org.jfree.chart3d.data.xyz.XYZDatasetUtils
A collection of utility methods related to
XYZDataset
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic XYZDataset
<String> sampleFunction
(Function3D f, String key, double xmin, double xmax, double xcount, double zmin, double zmax, double zcount) Creates anXYZDataset
by sampling aFunction3D
over a specified range.static XYZDataset
<String> sampleFunction
(Function3D f, String key, Range xrange, double xcount, Range zrange, double zcount) Creates anXYZDataset
by sampling aFunction3D
over a specified range.
-
Constructor Details
-
XYZDatasetUtils
public XYZDatasetUtils()
-
-
Method Details
-
sampleFunction
public static XYZDataset<String> sampleFunction(Function3D f, String key, Range xrange, double xcount, Range zrange, double zcount) Creates anXYZDataset
by sampling aFunction3D
over a specified range.- Parameters:
f
- the function (null
not permitted).key
- the series key (null
not permitted).xrange
- the range of x values (null
not permitted).xcount
- the number of x samples (must be at least 2).zrange
- the range of z values (null
not permitted).zcount
- the number of z-samples (must be at least 2).- Returns:
- A dataset containing sampled values from the function.
-
sampleFunction
public static XYZDataset<String> sampleFunction(Function3D f, String key, double xmin, double xmax, double xcount, double zmin, double zmax, double zcount) Creates anXYZDataset
by sampling aFunction3D
over a specified range.- Parameters:
f
- the function (null
not permitted).key
- the series key (null
not permitted).xmin
- the lower bound of the x-range.xmax
- the upper bound of the x-range.xcount
- the number of x samples (must be at least 2).zmin
- the lower bound of the z-range.zmax
- the upper bound of the z-range.zcount
- the number of z-samples (must be at least 2).- Returns:
- A dataset containing sampled values from the function.
-