Spline
Model ElementSplines are piecewise polynomial functions that possess a user controlled degree of smoothness.
Class Name
Spline
Description
In mathematics, splines are often used for fitting and interpolating measured data. Reference_Spline defines a spline with two or three independent variables. In other words, the data can be a curve or a surface.
Attribute Summary
Name | Property | Modifiable by command? | Designable? |
---|---|---|---|
id | Int () | ||
label | Str () | ||
x | Double (count=0) | Yes | FD Only |
y | Double (count=0) | Yes | FD Only |
z | Double (count=0) | FD Only | |
linear_extrapolate | Bool (False) | Yes | |
file | String () | Yes | |
block | String () | Yes | |
function | Function ("SPLINE_READ") |
Usage
#1: Spline for X-Y data
Spline (x=list, y=list, optional_attributes)
#2: Spline for X-Y-Z data
Spline (x=list, y=list, optional_attributes)
#3: Spline data read from a file by a compiled user subroutine
Spline (file=string, function=userString, routine=string, optional_attributes)
#4: Spline data read from a file by a Python function
Spline (file=string, function=userString, routine=functionPointer, optional_attributes)
Attributes
- x
- List of numeric values.
- y
- List of numeric values
- x
- List of numeric values.
- z
- List of numeric values.
- y
- List of numeric values.
- file
- String
- function
- String
- routine
- String
- block
- String
- file
- String
- function
- String
- routine
- Pointer to a callable function in Python.
- block
- String
- id
- Integer
- label
- String
- linear_extrapolate
- Boolean
Example
XML Syntax | Python Syntax |
---|---|
|
|
|
|
|
|
Comments
- See Properties for an explanation about what properties are, why they are used, and how you can extend these.
- For a more detailed explanation about Spline, see Reference: Spline.