Changeset 338
- Timestamp:
- Sep 22, 2004, 9:40:30 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/ga/storm_surge/pyvolution/least_squares.py
r337 r338 1 1 """Least squares smooting and interpolation. 2 3 Implements a penalised least-squares fit and associated interpolations. 4 5 The panalty term (or smoothing term) is controlled by the smoothing 6 parameter alpha. 7 With a value of alpha=0, the fit function will attempt 8 to interpolate as closely as possible in the least-squares sense. 9 With values alpha > 0, a certain amount of smoothing will be applied. 10 A positive alpha is essential in cases where there are too few 11 data points. 12 A negative alpha is not allowed. 13 A typical value of alpha is 1.0e-6 14 2 15 3 16 Ole Nielsen, Stephen Roberts, Duncan Gray, Christopher Zoppou … … 34 47 (or an nx2 Numeric array) 35 48 36 alpha: Smoothing parameter 37 49 alpha: Smoothing parameter. 50 38 51 point_attributes: Vector or array of data at the point_coordinates. 39 52 """ … … 302 315 303 316 304 #FIXME: We mayneed a method 'evaluate(self):' that will interpolate317 #FIXME: We will need a method 'evaluate(self):' that will interpolate 305 318 #a computed surface living on the mesh onto a collection of 306 319 #arbitrary data points
Note: See TracChangeset
for help on using the changeset viewer.