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


next up previous contents index
Next: functionalserver.gaussian1d - Function Up: functionalserver - Tool Previous: functionalserver.names - Function


functionalserver.functional - Function



Package utility
Module functionals
Tool functionalserver


Create the named functional


Synopsis
functional(name, order, params)


Arguments

name in name of functional to create
    Allowed: string
    Default: unset
order in order if appropriate
    Allowed: integer
    Default: depending on functional
params in parameters
    Allowed: numeric array
    Default: depending on functional


Returns
Functional


Description

Create the named functional. If an order is specified it is used, otherwise the default functional is created with the specified (or default) parameters. Naming is minimum-match, case insensitive. See the separate combine, compound and compiled descriptions for more information on these special cases.

Name Order Default order Default parameters
gaussian1d - - [1 0 1]
gaussian2d - - [1 0 0 1 1 0]
gaussian3d - - [1 0 0 0 1 1 1 0 0]
gaussianNd y 2 [0.159155 0 0 1 1 0] (note height)
hyperplane y 0 [0]
polynomial y 0 [0] (see separate poly)
evenpolynomial y 0 [0]
odd polynomial y 0 [0]
sinusoid1d - - [1 1 0]
chebyshev y 0 [0]
butterworth - 0 [0]
combine - - [] (all 1 after adds)
compound - - [] (copied from added functions)
compiled y - [...] (a list of zeroes: see separate compiled)

A created functional (or /em function for short, but be aware of possible Glish terminology clashes) will have a set of basic methods, which are described in the functional tool.



Example
- a:=dfs.functional('poly', 2, [1,2,3]) # create a polynomial
- a.f([0,1,2])                          # get some values
[1 6 17]  
- a.fdf([0,1,2])                        # get values and derivatives
[[1:3,]
    1  1 0 0
    6  1 1 1
    17 1 2 4] 
- b:=dfs.functional('combi')            # a combine
- b.add(a)                              # with the polynomial
T 
- b.f([0,1,2])                          # values are same
[1 6 17]  
- b.add(b)                              # add again
T 
- b.f([0,1,2])                          # as expected from the combination
[2 12 34]





next up previous contents index
Next: functionalserver.gaussian1d - Function Up: functionalserver - Tool Previous: functionalserver.names - 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