public class ExampleCrossValidation extends Object implements IDevelopmentTest
| Constructor and Description |
|---|
ExampleCrossValidation() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(String[] args)
Provides the main method for an example application
that attempts to find out how well each point in a set of
sample inputs can be predicted by its neighbors.
|
void |
runTest(PrintStream ps,
String[] args)
Run the example code accepting a set of input vertices and looping
through to perform cross validation, tabulating the results.
|
public static void main(String[] args)
Data is accepted from an LAS file. A TIN is constructed. Then one-at-a-time, each point in the tin is removed, and a predicted value at its position is computed using various interpolators. A error value is computed as the difference between the predicted value and the true value. Errors are tabulated. The removed point is restored. And the process continues to the next point.
Command line arguments include the following:
-in <file path> input LAS file
-frame xmin xmax ymin ymax frame for processing.
Other arguments used by Tinfour test programs are supported
args - command line arguments indicating the input LAS file
for processing and various output options.public void runTest(PrintStream ps, String[] args) throws IOException
runTest in interface IDevelopmentTestps - a valid print-stream for recording results of processing.args - a set of arguments for configuring the processing.IOException - if unable to read input or write output files.Copyright © 2019. All rights reserved.