- Timestamp:
- Mar 10, 2008, 11:53:33 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/documentation/user_manual/anuga_user_manual.tex
r5143 r5144 3692 3692 new object are disjoin set of each other. 3693 3693 3694 Points of the two new object have selected RANDOMLY.3694 Points of the two new geospatial_data object are selected RANDOMLY. 3695 3695 3696 Input - the factorwhich to split the object, if 0.1 then 10% of the3696 Input - the (\code{factor}) which to split the object, if 0.1 then 10% of the 3697 3697 together object will be returned 3698 3698 … … 3703 3703 north_boundary=None, south_boundary=None, east_boundary=None, west_boundary=None, plot_name='all_alphas', split_factor=0.1, seed_num=None, cache=False, verbose=False} 3704 3704 3705 Returns two geospatial_data object, first is the size of the 'factor' 3706 smaller the original and the second is the remainder. The two 3707 new object are disjoin set of each other. 3708 3709 Points of the two new object have selected RANDOMLY. 3710 3711 Input - the factor which to split the object, if 0.1 then 10% of the 3712 together object will be returned 3713 3714 Output - two geospatial_data objects that are disjoint sets of the original 3705 Removes a small random sample of points from 'data_file'. Creates 3706 models from resulting points in 'data_file' with different alpha values from 'alpha_list' and cross validates 3707 the predicted value to the previously removed point data. Returns the 3708 alpha value which has the smallest covariance. 3709 3710 data_file: must not contain points outside the boundaries defined 3711 and it either a pts, txt or csv file. 3712 3713 alpha_list: the alpha values to test in a single list 3714 3715 mesh_file: name of the created mesh file or if passed in will read it. 3716 NOTE, if there is a mesh file mesh_resolution, north_boundary, south... etc will be ignored. 3717 3718 mesh_resolution: the maximum area size for a triangle 3719 3720 north_boundary... west_boundary: the value of the boundary 3721 3722 plot_name: the name for the plot contain the results 3723 3724 seed_num: the seed to the random number generator 3725 3726 USAGE: 3727 convariance_value, alpha = find_optimal_smoothing_parameter(data_file=fileName, 3728 alpha_list=[0.0001, 0.01, 1], 3729 mesh_file=None, 3730 mesh_resolution=3, 3731 north_boundary=5, 3732 south_boundary=-5, 3733 east_boundary=5, 3734 west_boundary=-5, 3735 plot_name='all_alphas', 3736 seed_num=100000, 3737 verbose=False) 3738 3739 OUTPUT: returns the minumum normalised covalance calculate AND the 3740 alpha that created it. PLUS writes a plot of the results 3741 3742 NOTE: code will not work if the data_file extent is greater than the 3743 boundary_polygon or any of the boundaries, eg north_boundary...west_boundary 3715 3744 \end{methoddesc} 3716 3745
Note: See TracChangeset
for help on using the changeset viewer.