Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: functionfitter.fit - Function Up: functionfitter - Tool Previous: functionfitter.done - Function


functionfitter.filter - Function



Package utility
Module fitting
Tool functionfitter


Filter a data array


Synopsis
filter(method, width, progress)


Arguments

method in The method type
    Allowed: String (case insensitive) from 'median' or 'mean'
    Default: 'median'
width in Width of running median filter
    Allowed: Positive integer
    Default: 5 points
progress in See progress reports on median filter every progress points
    Allowed: Positive integer
    Default: No reports


Returns
T or fail



Description

This function running-filters the current data array with a variety of kernels over the specified width. The current data are replaced by the filtered data.



Example
include 'functionfitter.g'
ff := functionfitter()
ff.setdata (x, y)                          # Data assumed 'pre-made'
ff.filter(method='median', width=10)       # Replace with filtered data





next up previous contents index
Next: functionfitter.fit - Function Up: functionfitter - Tool Previous: functionfitter.done - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15