# doc-cache created by Octave 10.1.0
# name: cache
# type: cell
# rows: 3
# columns: 212
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 20
AddSplineBasisValues


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 59
 of quadrature points spanning an interval between knots.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 57
 of quadrature points spanning an interval between knots.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 14
AmpPhaseDecomp


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 66
  Computes the amplitude-phase decomposition for a registration.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 64
  Computes the amplitude-phase decomposition for a registration.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 4
Dyfn


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
 global Wfd



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
 global Wfd




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 3
FEM


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1796
  FEM computes the basis matrix for the FEM basis.  Each row of this 
  matrix corresponds to a value the corresponding row of EVALARG.  
  The number of columns of the matrix equals the number of rows of NODES.
  The value in the position in a row corresponding to the first value in 
  the same row in EVALARG is set to the value in the second position in
  the corresponding row of EVALARG.  All other values are zero.  
  The matrix is returned in sparse matrix format.

  Note:  Unlike spline and other basis functions, the values of FEM basis 
  functions are either 0 or 1, and, consequently, function FEM probably 
  has few interesting uses in functional data analysis.   It is included 
  essentially only for completeness.

  Arguments:
  EVALARG ... An N by 2 matrix.  In any row, the first value
                must be an integer, and is the index of the node whose
                value is to be set to the value in the second value.
                            
  P       ... The NBASIS by 2 matrix of vertices of triangles containing
                 the X- and Y-coordinates of the vertices.
              P may also be provided as a 2 by NBASIS matrix.
  T       ... The 4 by no. of triangles matrix specifying triangles and 
              their properties:
              Columns 1 to 3:   the indices in P of the vertices of each 
              triangle in counter-clockwise order.
              Column  4:        the subdomain number of the triangle
              T may also be provided with 3 columns, in which case the
              final column is set to ones.  It may also be provided as
              either a 3 or 4 by number of triangles matrix.
  NDERIV  ... An order of derivative to be evaluated, with may be
              0, 1 or 2.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 50
  FEM computes the basis matrix for the FEM basis.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
FEM_density_fit


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 938
FEMDENSITY computes the negative log likelihood and its first and second
  derivatives with respect to CVEC for the inhomogeneous Poisson
  model for the density of spatially distributed data whose
  coordinates are XVEC and YVEC.  Covariate values in Zmat may also be
  used to model the data

  Input: 

  CVEC      ...  A column vector of coefficients for first order finite
                 element functions
  BASISOBJ  ...  An order 1 FEM basis object defined by function
                 CREATE_FEM_BASIS
  XVEC      ...  X-coordinates of points of length N
  YVEC      ...  Y-coordinates of points of length N
  K1        ...  the stiffness matrix  for penalizing slope
  LAMBDA    ...  the penalty parameter for penalizing slope

  Output:

  F    ... Objective function value
  GRAD ... Gradient with respect to coordinates
  PVEC ... Vector of probabilities
  PDEN ... Norming constant for probabilities



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
FEMDENSITY computes the negative log likelihood and its first and second
  d...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
FEMpen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 61
undocumented function: penaltymat = FEMpen (basisobj, Lfdobj)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 61
undocumented function: penaltymat = FEMpen (basisobj, Lfdobj)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
Fperm_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 476
  FPERM_FD does a permutation test for a functional parameter effect.
  Arguments;
  The first four are same as the corresponding arguments for function
  fRegress; yfdpar, xfdCell, betacell, wt
  NPERM   ... number of permutations to be used
  ARGVALS ... argument values for evaluating functional responses,
  Q       ... tail probability of quantile to compare
  PLOTRES ... If nonzero, results are plotted
  Results;
  FPERMSTR;
  A struct object with slots;




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 69
  FPERM_FD does a permutation test for a functional parameter effect.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
Fstat_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 65
  FSTAT_FD computes an F-ratio scalar or functional data object



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 65
  FSTAT_FD computes an F-ratio scalar or functional data object




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
IRT3PL


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 569
  IRT3PL Values of monomials, or their derivatives, combined with
  log(exp(x) + shift).
  The powers of EVALARG are the NBASIS nonnegative integers in EXPONENTS.
  The default is 1, meaning EVALARG itself.
  Arguments are as follows:
  EVALARG   ... array of values at which the polynomials are to
                evaluated
  SHIFT     ... Shift parameter.   Defaults to 1.
  NDERIV    ... Order of derivative to be returned.  Max. 2.
  Return is:
  A matrix with length(EVALARG) rows and NBASIS columns containing
    the values of the monomials or their derivatives



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  IRT3PL Values of monomials, or their derivatives, combined with
  log(exp(x...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
IRT3PLpen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 467
  IRT3PLPEN  Computes the monomial plus log-exp-shift penalty matrix.

  Warning:  This version is incomplete in the sense that
    it only works with LFDOBJ = D^m

  Arguments:
  BASISFD  ... a monomial basis object
  LFDOBJ   ... either the order of derivative or a
               linear differential operator to be penalized.
  Returns a list the first element of which is the basis matrix
   and the second element of which is the diagonal of the penalty matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 69
  IRT3PLPEN  Computes the monomial plus log-exp-shift penalty matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
LMdens_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 134
  LMDENS_FD estimates a regression and the density of the residuals.
  If betaO is [], or empty, then only the density is estimated. 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 68
  LMDENS_FD estimates a regression and the density of the residuals.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 14
MakeQuadPoints


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 409

 functin MakeQuadPoints

 Creates quadrature points and values for using Simpson's rule in a
 Bspline basis. 

 INPUTS:

 knots  - the knots of the basis

 nquad  - number of quadrature points to use

 OUTPUT:
 
 quadvals - a 2-dimensional array containing the quadrature points to use
            in the first dimension and the corresponding quadrature
            weights in the second.




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80

 functin MakeQuadPoints

 Creates quadrature points and values for using ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
MixedDesign


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 311
  MixedDesign sets up the design matrix for one between and one within
  factor in an ANOVA.
  Arguments:
  a  ... number of levels of the within  factor A
  b  ... number of levels of the between factor B
  r  ... vector of length b containing the numbers of subjects
         in each level of factor B



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  MixedDesign sets up the design matrix for one between and one within
  fac...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2
QS


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 318
QS computes values of the basis functions for log-derivative of
  the quantile function as a function of surprisal s
  or its derivative.  
  These are:
     { 1,  s, log(1+s), , log[1+log(1+s)], ... } 
  They are defined over [0, Smax], but Smax is never actually
  used
  Argument S is checked for being nonnegative



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
QS computes values of the basis functions for log-derivative of
  the quantil...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2
QW


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 610
QW computes values of the three basis functions for log-derivative W of
  the Weibull quantile function or its derivative.  
  These are:
     { 1,  -log(1-u), log(-log(1-u)) } = {F1, F2, F3}
  They are defined over [Umin, Umax], Umin < 0, Umax < 1.
  Argument U is checked for satisfying this condition.
  Arguments are as follows:
  U       ... A vector of values at which the basis functions are to
              evaluated
  NDERIV  ... highest order derivative.  Cannot exceed 3
  Return is a matrix with length(U) rows and 3 columns containing
  the values of the QW basis functions or their derivatives.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
QW computes values of the three basis functions for log-derivative W of
  the...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 3
QWM


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 303
QWM computes values of the three basis functions for log-derivative of
  the modified Weibull quantile function or its derivative.  
  These are:
     { 1,  -log(1-u), log(1 - log(1-u)) } = {F1, F2, F3}
  They are defined over [0, Umax], Umax < 1.
  Argument U is checked for satisfying this condition.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
QWM computes values of the three basis functions for log-derivative of
  the ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
argcheck


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 17
  check ARGVALS



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 17
  check ARGVALS




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
argvalsy_swap


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 76
  carry out two tests, either of which calls for swapping
  y and argvals



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 76
  carry out two tests, either of which calls for swapping
  y and argvals




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
bifdParcheck


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 49
  check whether this is a proper bifdPar object



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 49
  check whether this is a proper bifdPar object




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
bsplineM


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 528
  BSPLINEM  Computes values or derivatives of B-spline basis functions
  Arguments:
  X         ... Argument values for which function values are computed
  BREAKS    ... Increasing knot sequence spanning argument range
  NORDER    ... Order of B-spline (one greater than degree) max = 19
                Default 4.
  NDERIV    ... Order of derivative required, default 0.
  SPARSEWRD ... if 1, return in sparse form
  Return:
  BSPLINEMAT ... length(X) times number of basis functions matrix
                 of Bspline values



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  BSPLINEM  Computes values or derivatives of B-spline basis functions
  Argu...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
bsplinepen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 330
BSPLINEPEN computes the bspline penalty matrix for penalty LFDOBJ.
  Arguments:
  BASISOBJ  ... a basis object
  LFDOBJ    ... a linear differential operator object.  
                Default int2Lfd(2)
  RNG       ... A range over which the product is evaluated
  SPARSEWRD ... if 1, return penaltymatrix in sparse storage mode.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 66
BSPLINEPEN computes the bspline penalty matrix for penalty LFDOBJ.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
bvec2fitcell


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 105
       transfer parameters from vector BVEC to cell arrays
                        BWTCELL and AWTCELL



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
       transfer parameters from vector BVEC to cell arrays
                 ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
cartes2sphere


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 133
  CARTES2SPHERE converts Cartesian coordinates of a point on a sphere
  in a space of dimension n + 1 into n angles and the radius



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CARTES2SPHERE converts Cartesian coordinates of a point on a sphere
  in a...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
cca_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1511
  CCA_FD   Functional canonical correlation analysis with regularization.

  Arguments:
  FDOBJx    ... Functional data object for the first  set of functions.
  FDOBJy    ... Functional data object for the second set of functions.
                If FDOByx and FDOBJy correspond to two variables, i and j,  
                of a single multivariate functional data object, say 
                MVFDOBJ, then use as arguments 
                MVFDOBJ(:,i) and MVFDOBJ(:,j), respectively.
  NCAN      ... Number of pairs of canonical variates to be estimated. 
                Default 2
  CCAFDPARx ... A functional parameter object for the canonical weight
                functions for the first  set of functions.
                The default is fdPar(FDOBJx).
  CCAFDPARy ... A functional parameter object for the canonical weight
                functions for the second set of functions.
                The default is fdPar(FDOBJy).
  CENTERFNS ... Center the functions before analyzing. Default 1.
  Returns:  
  CCASTR   ... A struct object with fields:
  CCAWTFDx ... A functional data object for the canonical weight
                functions for the first  set of functions.
  CCAWTFDy ... A functional data object for the canonical weight
                functions for the second set of functions.
  CCAVARx  ... Canonical variate scores for first  set of functions.
  CCAVARy  ... Canonical variate scores for second set of functions.
  CORRS    ... The corresponding set of canonical correlations.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 73
  CCA_FD   Functional canonical correlation analysis with regularization.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
constrain


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 89
 x = constrain(x, LB, UB)
 Return a copy of x where all elements fulfill LB <= x <= UB



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 x = constrain(x, LB, UB)
 Return a copy of x where all elements fulfill LB ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
cor_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 69
  compute correlation matrix / matrices for functional observations



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 69
  compute correlation matrix / matrices for functional observations




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
cosine


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 228
  COSINE  Computes the NDERIV derivative of the cosine series basis
    for NBASIS functions with period PERIOD, these being evaluated
    at values in vector EVALARG.
  Returns an N by NBASIS matrix BASISMAT of function values



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  COSINE  Computes the NDERIV derivative of the cosine series basis
    for N...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
cosinepen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 216
  COSINEPEN computes the fourier penalty matrix for penalty LFD.
  Arguments:
  BASISOBJ ... a basis object
  LFDOBJ   ... a linear differential operator object
  Returns: 
  PENALTYMAT ... the penalty matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 64
  COSINEPEN computes the fourier penalty matrix for penalty LFD.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 16
create_FEM_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 3734
  CREATE_FEM_BASIS sets up a finite element basis for the analysis
  of spatial data.  It requires a triangular mesh as input, such as is
  set up by functions initmesh and refinemesh in the pde toolbox. 
  The triangular mesh is defined by a Delaunay triangulation of the domain 
  of the basis functions, along with, optionally, a decomposition of the 
  domain into subdomains.  

  The finite elements used for functional data analysis are second
  order Lagrangian elements.  These are triangles covering a region,
  and the basis system is piecewise quadratic.  There is a basis
  function associated with each node in the system.
  Nodes are points that are either:
    vertices of triangles or
    midpoints of edges of triangles.
  There are 6 nodes for each triangle, and there are six degrees of 
  freedom in a quadratic function in X and Y.  Consequently, the 6 values
  of the nodal basis functions uniquely define a quadratic function over
  a triangle.

  Arguments:

  P  ...  The NBASIS by 2 matrix of vertices of triangles containing
          the X- and Y-coordinates of the vertices.
          P may also be provided as a 2 by NBASIS matrix, such as would
          be generated by exporting the mesh generated by function 
          pdetool in the pde toolbox.
  E  ...  The number of edges by 7 matrix defining the segments of the 
          boundary of the region which are also edges of the triangles
          adjacent to the boundary.  This would usually be generated by
          exporting the mesh in function pdetool in the pde toolbox.
          The values in matrix E as follows:
          Columns 1 and 2:  the indices of the vertices in matrix P of
          the starting and ending points of the edges
          Columns 3 and 4:  the starting and ending parameter values.  
          These are initialized to 0 and 1.
          Column  5:        the edge segment number 
          Columns 6 and 7:  the left and right-hand side subdomain numbers
          E may also be provided as a 7 by number of edges matrix, which
          is the format resulting from exporting the mesh in function
          pdetool of the pde toolbox.
          E is often not needed, and may be input as an empty object [].
  T  ...  The no. of triangles by 4 matrix specifying triangles and 
          their properties:
          Columns 1 to 3:   the indices in P of the vertices of each 
          triangle in counter-clockwise order.
          Column  4:        the subdomain number of the triangle
          T may also be provided with 3 columns, in which case the
          final column is set to ones.  It may also be provided as
          either a 3 or 4 by number of triangles matrix.  The latter 
          format would result from exporting the mesh in the function
          pdetool in the pde toolbox.
  ORDER . Order of elements, which may be either 1 or 2 (default)
  NQUAD . Number of quadrature points per side.  This is entered into
          function triquad, which returns for each triangle NQUAD^2 
          quadrature points and their associated weights for integrating a 
          function over a mesh.  Default 0 or [];  This option uses Matlab
          function triquad to set up quadrature points and weights 
          which are stored in a two-dimensional cell array object,
          the first dimension being the number of elements or triangles,
          and the second dimension is of length 4, 2 columns for point
          coordinates, and two for quadrature weights.
  
  Returns:

  An object of the basis class with parameters stored in member params,
  which in this case is a struct object with members p, e and t.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_FEM_BASIS sets up a finite element basis for the analysis
  of spat...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 19
create_IRT3PL_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 902
  CREATE_IRT3PL_BASIS  Creates a monomial basis:, x^i_1, x^i_2, ...
  combined with an additional basis function log(exp(x)+shift)
  for use with simple item response functions to model the log-odds
  function.  The number of monomial terms is NBASIS - 1, and the highest
  exponent is NBASIS - 2
  Arguments:
  RANGEVAL ... an array of length 2 containing the lower and upper
               boundaries for the rangeval of argument values.  If a
               single value is input, it must be positive and the lower
               limit of the range is set to 0.
  NBASIS    ... number of basis functions.  Defaults to 3.
  SHIFT     ... Shift parameter in log(exp(x)+shift)
  DROPIND   ... a set of indices in 1:NBASIS of basis functions to drop
                when basis objects are arguments.  Default is [];
  Return:
  BASIS  ... a functional data basis object of type 'IRT3PL'



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 67
  CREATE_IRT3PL_BASIS  Creates a monomial basis:, x^i_1, x^i_2, ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
create_QS_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 342
  CREATE_QS_BASIS  Creates a basis for the log-derivative W of the
  a quantile function that is a function of surprisal s.  
  These basis functions are:
     { 1,  s, log(1 + s), log[1 + log(1 + s)], ... }
  They are defined over [0, Smax], but Smax is not actually used.
  Argument RANGEVAL is checked for satisfying this condition.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_QS_BASIS  Creates a basis for the log-derivative W of the
  a quant...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 16
create_QWM_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 292
  CREATE_QWM_BASIS  Creates a basis for the log-derivative W of the
  modified Weibull quantile function.  
  These basis functions are:
     { 1,  -log(1-u), log(1 - log(1-u)) }
  They are defined over [0, Umax], Umax < 1.
  Argument RANGEVAL is checked for satisfying this condition.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_QWM_BASIS  Creates a basis for the log-derivative W of the
  modifi...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
create_QW_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 550
  CREATE_QWM_BASIS  Creates a basis for the log-derivative W of the
  Weibull quantile function.  
  These basis functions are:
     { 1,  -log(1-u), log(-log(1-u)) }
  They are defined over [Umin, Umax], Umin > 0,  Umax < 1.
  Argument RANGEVAL is checked for satisfying this condition.
  RANGEVAL ... Range over which the quantile function is defined.
               The upper limit MUST be less than 1, and the lower
               limit MUST be greater than 0.  
  Return:
  BASIS.FD  ... a functional data basis object of type 'QW'




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_QWM_BASIS  Creates a basis for the log-derivative W of the
  Weibul...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
create_TP_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 845
  CREATE_TP_BASIS sets up a tensor product basis for the analysis
  of two-dimensional spatial data or of time crossed with one-dimensional 
  data.  It constructs this basis from two one-dimensional basis objects.

  Arguments:
  BASISOBJ1 ... A one-dimensional functional basis object.
  BASISOBJ2 ... A one-dimensional functional basis object.
  
  Returns:
  An object of the basis class with parameters stored in member PARAMS.
  In this case the member PARAMS is a struct object with members
  BASISOBJ1 and BASISOBJ2.  The RANGEVAL object is a 2 by 2 matrix with
  the first row containing the lower and upper range values for object
  BASISOBJ1 and the second row the same for BASISOBJ2.   Similarly,
  the NBASIS member is a vector of length 2 containing the two numbers
  of basis functions.   The TYPE member is 'TP'.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_TP_BASIS sets up a tensor product basis for the analysis
  of two-d...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
create_basis_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 49
  CREATE_BASIS_FD  An alternative call to BASIS.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 49
  CREATE_BASIS_FD  An alternative call to BASIS.




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 20
create_bspline_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1572
CREATE_SPLINE_BASIS Creates a bspline functional data basis.
  This function is identical to BSPLINE_BASIS.
  Arguments ...
  RANGEVAL ... an array of length 2 containing the lower and upper
               boundaries for the rangeval of argument values.  If a
               single value is input, it must be positive and the lower
               limit of the range is set to 0.
  NBASIS   ... the number of basis functions
  NORDER   ... order of b-splines (one higher than their degree).  The
                 default of 4 gives cubic splines.
  BREAKS   ... also called knots, these are a strictly increasing sequence
               of junction points between piecewise polynomial segments.
               They must satisfy BREAKS(1) = RANGEVAL(1) and
               BREAKS(NBREAKS) = RANGEVAL(2), where NBREAKS is the total
               number of BREAKS.
  There is a potential for inconsistency among arguments NBASIS, NORDER, 
  and BREAKS.  It is resolved as follows:
     If BREAKS is supplied, NBREAKS = length(BREAKS), and
     NBASIS = NBREAKS + NORDER - 2, no matter what value for NBASIS is
     supplied.
     If BREAKS is not supplied but NBASIS is, 
        NBREAKS = NBASIS - NORDER + 2,
        and if this turns out to be less than 3, an error message results.
     If neither BREAKS nor NBASIS is supplied, NBREAKS is set to 21.
  DROPIND ... a set of indices in 1:NBASIS of basis functions to drop
                when basis objects are arguments.  Default is [];
  Returns
  BASISOBJ  ... a functional data basis object



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 60
CREATE_SPLINE_BASIS Creates a bspline functional data basis.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 21
create_constant_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 786
  CREATE_CONSTANT_BASIS  Creates a constant basis
  Argument:
  RANGEVAL ... an array of length 2 containing the lower and upper
               boundaries for the rangeval of argument values.  If a
               single value is input, it must be positive and the lower
               limit of the range is set to 0.
               If no argument is present the range is set to [0,1];
  Return:
  BASIS.FD  ... a functional data basis object of type 'constant'

  See also BASIS, CREATE_BSPLINE_BASIS, CREATE_EXPONENTIAL_BASIS, 
  CREATE_FD_BASIS, CREATE_FDVAR_BASIS, CREATE_FOURIER_BASIS, 
  CREATE_MONOMIAL_BASIS, CREATE_POLYGONAL_BASIS, CREATE_POLYNOMIAL_BASIS, 
  CREATE_POWER_BASIS, CREATE_POLYGONAL_BASIS, CREATE_FEM_BASIS, 
  CREATE_PRODUCT_BASIS, CREATE_TP_BASIS



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_CONSTANT_BASIS  Creates a constant basis
  Argument:
  RANGEVAL .....



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 19
create_cosine_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 803
CREATE_COSINE_BASIS  Creates a functional data basis using only the
  constant and the cosine terms of the FOURIER BASIS.
  Arguments ...
  RANGEVAL ... an array of length 2 containing the lower and upper
               boundaries for the rangeval of argument values.  If a
               single value is input, it must be positive and the lower
               limit of the range is set to 0.
  NBASIS   ... the number of basis functions
  PERIOD   ... The period.  That is, the basis functions are periodic on
                 the interval (0,PARAMS) or any translation of it.
  DROPIND  ... a set of indices in 1:NBASIS of basis functions to drop
                when basis objects are arguments.  Default is [];
  Returns
  BASIS_fd  ... a functional data basis object of type 'cosine'



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
CREATE_COSINE_BASIS  Creates a functional data basis using only the
  consta...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 20
create_default_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1538
  CREATE_DEfAULT_BASIS takes a vector or matrix argvals and creates a 
   default basis to be used for data observed on these arguments.

  ARGVALS  ... A vector or matrix of argument values. Missing values 
               allowed.
  NRESOL   ... A number that specifies the number of the finest features 
               or events that are of interest that can occur within the
               range of the argument values. By feature or event is
               meant things like peaks, valleys, zero crossings,
               plateaus, linear slopes, and so on.  NRESOL specifies
               the amount of resolution required of the functional
               data object.
  NDERIV   ... A natural number, 0, 1, 2, ..., specifying the number
               of derivatives that the functional data object must
               have.  The default is 2.
  PERIODIC ... If T, functions are treated as periodic, and=the
               case of vector ARGVALS the
               argument domain is extended below by one value to become
                (ARGVALS(1) - (ARGVALS(N)-ARGVALS(1))/(N-1), ARGALS(N).
               The default is F.

  Returns an object of class BASISOBJ, a functional data basis object

  See also BASIS, CREATE_BSPLINE_BASIS,  CREATE_CONSTANT_BASIS, 
  CREATE_EXPONENTIAL_BASIS, CREATE_FD_BASIS, CREATE_FDVAR_BASIS,
  CREATE_FOURIER_BASIS, CREATE_MONOMIAL_BASIS, CREATE_POLYGONAL_BASIS, 
  CREATE_POLYNOMIAL_BASIS, CREATE_POWER_BASIS, CREATE_POLYGONAL_BASIS, 
  CREATE_FEM_BASIS, CREATE_PRODUCT_BASIS, CREATE_TP_BASIS



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_DEfAULT_BASIS takes a vector or matrix argvals and creates a 
   def...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 17
create_easy_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1841
CREATE_EASY_BASIS sets up a simple basis.
  If argument PERIODIC is nonzero, the basis is of type 'fourier',
  else it is of type 'bspline'.
  Argument RANGEVAL determines the range of argument values.  If
  the basis type is 'fourier', this also determines the period.
  The number of basis functions is jointly determined by arguments
  NRESOL and NDERIV.
  This function is identical to MAKE_BASIS.

  Arguments are as follows:

  RANGEVAL ... A vector of length 2 giving the lower and upper limits
               on argument values, respectively.
  NRESOL   ... The resolution required in the functions.  This means
               the maximum number of features or events that could in
               principle be represented in each observation.  Features
               are things like peaks, valleys, zero crossing, or plateaus.
               The width of a single feature may naturally not be less than 
               the minimum difference between two successive argument values.
               Roughly speaking, NRESOL is the width of the interval in 
               RANGEVAL divided by the width of the narrowest feature that
               requires representation.  NRESOL cannot logically exceed
               the number N of argument values, and for noisy data it should
               be considerably less. 
  PERIODIC ... Is 0 if the functions are not periodic, and nonzero otherwise.
               It is set to 0 by default.
  NDERIV   ... The highest order of derivative that is needed for the 
               functional data object.  This is set to 2 by default.

  Another option for a simple basis may be the polygonal basis of type 'polyg'
    made by function CREATE_POLYGONAL_BASIS.  Only use this option if no 
    derivatives will be required.

  last modified 30 January 2003



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 41
CREATE_EASY_BASIS sets up a simple basis.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 24
create_exponential_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 983
  CREATE_EXPONENTIAL_BASIS  Creates a exponential basis:
            exp[RATEVEC(1)*x], exp[RATEVEC(2)*x], ...
  Argument:
  RANGEVAL ... an array of length 2 containing the lower and upper
               boundaries for the rangeval of argument values.  If a
               single value is input, it must be positive and the lower
               limit of the range is set to 0.
  NBASIS    ... number of basis functions
  RATEVEC   ... an array of NBASIS rate values
  DROPIND   ... a set of indices in 1:NBASIS of basis functions to drop
                when basis objects are arguments.  Default is [];
  Return:
  BASIS     ... a functional data basis object of type 'expon'

  See also BASIS, CREATE_BSPLINE_BASIS, CREATE_FD_BASIS, 
  CREATE_FDVAR_BASIS, CREATE_FOURIER_BASIS, CREATE_MONOMIAL_BASIS, 
  CREATE_POLYGONAL_BASIS,  CREATE_POLYNOMIAL_BASIS, CREATE_POWER_BASIS, 
  CREATE_POLYGONAL_BASIS,  CREATE_FEM_BASIS, CREATE_PRODUCT_BASIS, 
  CREATE_TP_BASIS



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_EXPONENTIAL_BASIS  Creates a exponential basis:
            exp[RAT...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 18
create_fdVar_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 813
  CREATE_FDVAR_BASIS Creates a functional basis object with type 
  'fdVar' thatcan be used to define a covariance surface.  This 
  object can consist of one or more trapezoidal domains defined over a 
  common range.  The range is defined in argument RANGEVAL, which is also
  the RANGEVAL field of the basis object.
  Each trapezoidal region is defined by the number of vertical
  intervals in the corresponding element in I, and the number of
  horizontal elements in the corresponding element in J.  I and J
  must have the same lengths, and their common length is the number
  of trapezoidal domains defined.
  The PARAMS field for the basis object is a struct object with fields
  I and J.  The TYPE field is 'fdVar'.  The NBASIS field is the
  sum over i of (I(i)+1)*(J(i)+1)

  Arguments:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_FDVAR_BASIS Creates a functional basis object with type 
  'fdVar' ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
create_fd_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 800
CREATE_FD_BASIS Creates a functional data object basis where the basis 
  are functions in a functional data object FDOBJ.
  Arguments ...
  FD ... A replicated univariate functional data object.  The replicated
         functions are the basis functions for representing data.  A
         popular source of such a basis would the the FD object
         containing eigenfunctions arising from a functional PCA.
  Returns
  BASISOBJ  ... a functional data basis object

  See also BASIS, CREATE_BSPLINE_BASIS,  CREATE_CONSTANT_BASIS, 
  CREATE_EXPONENTIAL_BASIS, CREATE_FDVAR_BASIS, CREATE_FOURIER_BASIS, 
  CREATE_MONOMIAL_BASIS, CREATE_POLYGONAL_BASIS, CREATE_POLYNOMIAL_BASIS, 
  CREATE_POWER_BASIS, CREATE_POLYGONAL_BASIS, CREATE_FEM_BASIS, 
  CREATE_PRODUCT_BASIS, CREATE_TP_BASIS



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
CREATE_FD_BASIS Creates a functional data object basis where the basis 
  ar...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 20
create_fourier_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 792
CREATE_FOURIER_BASIS  Creates a fourier functional data basis.
  This function is identical to FOURIER_BASIS.
  Arguments ...
  RANGEVAL ... an array of length 2 containing the lower and upper
               boundaries for the rangeval of argument values.  If a
               single value is input, it must be positive and the lower
               limit of the range is set to 0.
  NBASIS   ... the number of basis functions
  PERIOD   ... The period.  That is, the basis functions are periodic on
                 the interval (0,PARAMS) or any translation of it.
  DROPIND  ... a set of indices in 1:NBASIS of basis functions to drop
                when basis objects are arguments.  Default is [];
  Returns
  BASIS_fd  ... a functional data basis object of type 'fourier'



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 62
CREATE_FOURIER_BASIS  Creates a fourier functional data basis.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 20
create_history_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 793
CREATE_HISTORY_BASIS computes indices of the three nodes 
   defining each triangular element covering either a triangle
   or parallelogram domain for a set of points (s,t) having the
   property t - \delta <= s <= t.  If the domain is triangular, that
   the lower limit is the maximum of 0 and t - \delta.  This domain
   is used for the historical linear model that approximates the 
   value y(t) of a functional dependent variable on the basis of
   \int x(s,t)\beta(s,t) ds where s is restricted in this way.
   The basis system for approximating bivariate regression function
   \beta is a set of piecewise linear "hat" or "tent" functions
   with hexagonal support constructed from these triangular elements.
   It is assumed that y(t) is observed for times 0 <= t <= TN.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
CREATE_HISTORY_BASIS computes indices of the three nodes 
   defining each t...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 21
create_monomial_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1044
  CREATE_MONOMIAL_BASIS  Creates a monomial basis:, 
     phi_1(t) = t^{exponents(1)}, phi_2(t) = t^{exponents(2)}, ...
  The exponents in this version must be nonnegative integers
  Argument:
  RANGEVAL ... an array of length 2 containing the lower and upper
               boundaries for the rangeval of argument values.  If a
               single value is input, it must be positive and the lower
               limit of the range is set to 0.
  NBASIS    ... number of basis functions
  EXPONENTS ... Set of powers of EVALARG to be applied.
  ARGTRANS  ... A vector of two constants for shifting and scaling the 
                argument range.  In functions MONOMIAL and MONOM, 
                the EVALARG is transformed to 
                [evalarg-argtrans(1))./evalarg(2);
                Defaults to [0,1];
  DROPIND  ... a set of indices in 1:NBASIS of basis functions to drop
                when basis objects are arguments.  Default is [];
  Return:
  BASIS  ... a functional data basis object of type 'monom'



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_MONOMIAL_BASIS  Creates a monomial basis:, 
     phi_1(t) = t^{expo...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 20
create_nspline_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1532
CREATE_NPLINE_BASIS Creates a natural spline functional data basis.

  Arguments ...
  RANGEVAL ... an array of length 2 containing the lower and upper
               boundaries for the rangeval of argument values.  If a
               single value is input, it must be positive and the lower
               limit of the range is set to 0.
  NBASIS   ... the number of basis functions
  NORDER   ... order of n-splines (one higher than their degree).  The
                 default of 4 gives (natural) cubic splines.
  BREAKS   ... also called knots, these are a strictly increasing sequence
               of junction points between piecewise polynomial segments.
               They must satisfy BREAKS(1) = RANGEVAL(1) and
               BREAKS(NBREAKS) = RANGEVAL(2), where NBREAKS is the total
               number of BREAKS.
  There is a potential for inconsistency among arguments NBASIS, NORDER, and
  BREAKS.  It is resolved as follows:
     If BREAKS is supplied, NBREAKS = length(BREAKS), and
     NBASIS = NBREAKS + NORDER - 4, no matter what value for NBASIS is
     supplied.
     If BREAKS is not supplied but NBASIS is, NBREAKS = NBASIS - NORDER + 2,
        and if this turns out to be less than 3, an error message results.
     If neither BREAKS nor NBASIS is supplied, NBREAKS is set to 21.
  DROPIND ... a set of indices in 1:NBASIS of basis functions to drop
                when basis objects are arguments.  Default is [];
  Returns
  BASISOBJ  ... a functional data basis object



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 67
CREATE_NPLINE_BASIS Creates a natural spline functional data basis.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 20
create_polygon_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 186
  CREATE_POLYGON_BASIS Creates a polygonal basis
  Argument:
  ARGVALS  ... strictly increasing argument values
  Return:
  BASIS_FD ... a functional data basis object of type 'polygon'



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_POLYGON_BASIS Creates a polygonal basis
  Argument:
  ARGVALS  ... s...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 22
create_polygonal_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 191
  CREATE_POLYGON_BASIS Creates a polygonal basis
  Argument:
  ARGVALS  ... strictly increasing argument values
  Return:
  BASIS_FD ... a functional data basis object of type 'polygon'



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_POLYGON_BASIS Creates a polygonal basis
  Argument:
  ARGVALS  ......



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 18
create_power_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 783
  CREATE_POWER_BASIS  Creates a power basis:, x.^exponents(1), x.^exponents(2), ...
  Argument:
  RANGEVAL ... an array of length 2 containing the lower and upper
               boundaries for the rangeval of argument values.  If a
               single value is input, it must be positive and the lower
               limit of the range is set to 0.
               For the power basis, the lower limit must not be negative.
  NBASIS    ... number of basis functions
  EXPONENTS ... an array of NBASIS exponents
                by default this is 0:(NBASIS-1)
  DROPIND  ... a set of indices in 1:NBASIS of basis functions to drop
                when basis objects are arguments.  Default is [];
  Return:
  BASISOBJ ... a functional data basis object of type 'power'



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  CREATE_POWER_BASIS  Creates a power basis:, x.^exponents(1), x.^exponents(2...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 20
create_product_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 542
CREATE_PRODUCT_BASIS creates a basis object for bi-variate functions.
  A product basis basis object is constructed from
  two univariate bases for expanding a bivariate function.  
  Each univariate basis is contained in a 'basis' object.  
  The basis for the bivariate functional data object consists
  of all possible pairs of the two sets of univariate basis functions.
  Arguments
  SBASISOBJ ... a functional data basis object for the first  argument s
  TBASISOBJ ... a functional data basis object for the second argument t



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 69
CREATE_PRODUCT_BASIS creates a basis object for bi-variate functions.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 17
create_sine_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 799
CREATE_SINE_BASIS  Creates a functional data basis using only the
  constant and the sine terms of the FOURIER BASIS.
  Arguments ...
  RANGEVAL ... an array of length 2 containing the lower and upper
               boundaries for the rangeval of argument values.  If a
               single value is input, it must be positive and the lower
               limit of the range is set to 0.
  NBASIS   ... the number of basis functions
  PERIOD   ... The period.  That is, the basis functions are periodic on
                 the interval (0,PARAMS) or any translation of it.
  DROPIND  ... a set of indices in 1:NBASIS of basis functions to drop
                when basis objects are arguments.  Default is [];
  Returns
  BASIS_fd  ... a functional data basis object of type 'cosine'



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
CREATE_SINE_BASIS  Creates a functional data basis using only the
  constant...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 18
create_slide_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 911
CREATE_SLIDE_BASIS Creates a consisting of step functions multiplied
  exponential decays over the intervals between steps.
  Arguments ...
  RANGEVAL ... an array of length 2 containing the lower and upper
               boundaries for the rangeval of argument values.  If a
               single value is input, it must be positive and the lower
               limit of the range is set to 0.
  BREAKS   ... also called knots, these are a strictly increasing sequence
               of junction points between piecewise polynomial segments.
               They must satisfy BREAKS(1) = RANGEVAL(1) and
               BREAKS(NBREAKS) = RANGEVAL(2), where NBREAKS is the total
               number of BREAKS.
  RATEVEC  ... Rate of decay over each interval.  Must be of length
               length(BREAKS) - 1.  Default values are one.
  Returns
  BASISOBJ  ... a functional data basis object



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
CREATE_SLIDE_BASIS Creates a consisting of step functions multiplied
  expon...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
data2fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7700
  DATA2FD Converts an array Y of function values plus an array
    ARGVALS of argument values into a functional data object.

  A functional data object is a sample of one or more functions, called 
    functional data observations.
  A functional data observation consists of one or more
    curves, each curve corresponding to a variable.
  For example, a functional data object can be a sample of size 35 of 
    temperature functions, one for each of 35 Canadian weather stations.
    In this case, each observations consists of a single temperature 
    function.
  Or, for example, a functional data object can be a sample of size 35
    of temperature and precipitation functional observations.  In this case
    each observations consists of two curves, one for the temperature 
    and one for the precipitation variable.
  All functional objects have a one-dimensional argument.  In the above
    examples, this argument is time measured in months or days.
    
  It is now possible to call data2fd with an argument sequence 
  that permits a penalization of the size of a derivative that
  can be specified.  That is, this gives data2fd some of the 
  capability of smooth.basis, except for the possibility of
  linear differential operators other than D^m.  

  Arguments for this function are as follows.  The first three are necessary
    and the fourth is optional.

  ARGVALS  ... (necessary)
  A set of argument values.  These are common to all
    observations, and ARGVALS will be a one-dimensional vector, with one
    element per observation.  These values need not be increasing.
    In the weather station example for monthly data, ARGVALS is 
    a vector of length 12, with values 0.5, 1.5,..., 11.5.
    Argument values falling outside of the range specified in the
    BASIS and their corresponding values in Y will not be used, 
    but if this happens, a warning message is displayed.
  Argument ARGVALS is necessary, and there is no default value.
  In the original release of data2fd, it was possible to input 
  arguments as a matrix, permitting different argument values and
  different numbers of arguments for curves.  This option has been
  discontinued.
    
  Y ... (necessary)
  The array Y stores curve values used to create functional data object FDOBJ.
  Y can have one, two, or three dimensions according to whether whether
    the sample size, the number of variables in each observation.  Its 
    dimensions are:
     1.  argument values  ...  size = no. argument values in ARGVAL
     2.  replications     ...  size = sample size
     3.  variables        ...  size = no. variables per observation
  If Y is a one-way array, either as a vector or a matrix with one column,
     it's single non-trivial dimension = no. argument values.  If Y
     is two-dimensional, each observation is assumed to have one variable.
     If Y is three-dimensional, each observation is assumed to have
     multiple variables.  Note:  a single multivariate observation must
     be an array Y with three dimensions, the middle of which is of length 1.
  Example:  For monthly temperature data for 35 weather stations, 
     Y will be 12 by 35.  For both temperature and precipitation observations, 
     Y will be 12 by 35 by 2.  For temperature/precipitation data at Montreal 
     only, Y will be 12 by 1 by 2.
  This argument is necessary, and there is no default value.

  BASISOBJ  ...  (necessary)
    A functional data basis object created by function CREATE_BASIS_FD 
    or one of its specialized version, such as CREATE_BSPLINE_BASIS or
    CREATE_FOURIER_BASIS.  The functional data basis object specifies
    a basis type (eg. 'fourier' or 'bspline'), a range or argument values,
    the number of basis functions, and fixed parameters determining these
    basis functions (eg. period for 'fourier' bases or knots for 'bspline'
    bases.  
    In most applications, BASIS will be supplied.  If BASIS is supplied, 
    the next three arguments are ignored.  
    If BASIS is an essential argument, and there no default value.  But
    see function MAKE_BASIS for a simplified technique for defining this
    basis.  For example, function call 
         MAKE_BASIS([0,12], 7, 1) 
    could be used for the monthly temperature/precipitation data to define
    a 'fourier' basis over an interval of 12 months containing 7 basis
    functions (the 3rd argument species the basis to be periodic.)
    This argument is necessary, and there is no default value.
    
    The following arguments are optional:

  NDERIV   ... A non-negative integer specifying the order of derivative
   whose size is to be controlled by the roughness penalty
       LAMBDA \int [D^NDERIV x(t)]^2 dt
   NDERIV may also be the string 'h', in which the harmonic acceleration
   operator is set up with period equal to the range specified in
   BASISOBJ.
   The default value is 4.

  LAMBDA   ... A nonegative real number specifying the weight placed on 
    the size of the derivative.
   The default value is 0.0.

  FDNAMES  ... A cell array object of length 3 with each cell containing a 
    single string specifying a name for a dimension of Y.
       1. argument domain, such as the string 'Time'
       2. replications or cases
       3. variables
    For example, for the daily temperature data, 
    fdnames{1} = 'Day';
    fdnames{2} = 'Station';
    fdnames{3} = 'Temperature (deg C)';
    By default, the string 'time', 'reps' and 'values' are used.

    These optional arguments can be supplied in two ways:
    1. If only a fourth argument is supplied, and it is a cell object,
       then it is taken to be FDNAMES.  In this case, no roughness
       penalty will be used.  This is the argument sequence in the 
       original release of this function.  On the other hand, if it is
       a non-negative integer, then it is taken to be  NDERIV and 
       LAMBDA and FDNAMES are set to their default values
    2. Up to three arguments are supplied, and are assumed to be in the
       order that follows: first NDERIV, second LAMBDA, and third FDNAMES.
       If any argument is to be set to its default value, but a following
       argument is required, it's position should be filled by the empty object []

  DATA2FD Returns these objects: 

  FDOBJ ... A functional data object containing the curves that fit the
    data in a least squares sense.
  DF    ... A real number specifying the equivalent of degrees of freedom
    for the fitted curves.
  GCV   ... N values of the GCV criterion associated with the fit, one
    value per replication.  SUM(GCV) can be used as a selector of the
    value of LAMBDA by searching for its minimum.
  COEF: ... The array of coefficients for the expansions of the fitted
    curves.  The first dimension corresponds to the basis functions, the
    second dimension to the replications, and the third dimension if 
    required to the variables for a multivariate functional data object.
    That is, it is an NBASIS by N (by NVAR) matrix or array.
  SSE   ... N values of the error sum of squares.

  DATA2FD is intended for more casual smoothing not requiring a great deal  
    sophistication in defining the functional data object.  It uses
    function SMOOTH_BASIS to compute the functional data object. Indeed,
    in the simplest and most common situation, DATA2FD consists of 
    However, for more advanced applications requiring more smoothing 
    control than is possible by setting the number of basis functions in
    BASIS, function SMOOTH_BASIS should be used.  Or, alternatively,
    DATA2FD may first be used with a generous number of basis functions,
    followed by smoothing using function SMOOTH_FD.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  DATA2FD Converts an array Y of function values plus an array
    ARGVALS of...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
density_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 323
DENSITY_FD estimates the density p(x) of a sample of scalar observations.
  These observations may be one of two forms:
   1.  a vector of observatons x_i 
   2.  a two-column matrix, with the observations x_i in the 
       first column, and frequencies f_i in the second.  
   Option 1. corresponds to all f_i = 1.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 73
DENSITY_FD estimates the density p(x) of a sample of scalar observations.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
deriv_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 235
  DERIV_FD  Applies linear differential operator object LFDOBJ 
  to functional data object FDOBJ and outputs a functional data object
  representing the result.
  LFDOBJ is either a positive integer or a linear differential operator.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  DERIV_FD  Applies linear differential operator object LFDOBJ 
  to function...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
derivs


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 105
 DERIVS sets up the 1st order system corresponding to   
   linear differential operator defined by wfd.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 DERIVS sets up the 1st order system corresponding to   
   linear differenti...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
derivsLfd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 47
undocumented function: dy = derivsLfd (tnow, y)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 47
undocumented function: dy = derivsLfd (tnow, y)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
derivs_pda


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 105
 DERIVS sets up the 1st order system corresponding to   
   linear differential operator defined by wfd.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 DERIVS sets up the 1st order system corresponding to   
   linear differenti...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
df2lambda


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 412
 DF2LAMBDA converts a degrees of freedom value to the equivalent
  smoothing parameter value.
  Arguments:
  ARGVALS  ...  Vector of argument values for smoothing
  BASISOBJ ...  Basis object used for smoothing
  WTVEC    ...  Vector of weight values for smoothing
  LFDOBJ   ...  Linear differential operator object 
                (may be an integer)
  DF       ...  Degrees of freedom value to be converted.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 DF2LAMBDA converts a degrees of freedom value to the equivalent
  smoothing ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
dot_bspline


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 449
INPROD_BSPLINE  computes matrix of inner products of the derivatives
  of order DERIV1 and DERIV2 of two functional data objects
  FD1 and FD2, respectively.
  These must both have Bspline bases, and these bases must have
  a common break point sequence.   However, the orders can differ.
  If only the first argument is present, the inner products of
  FD1 with itself is taken.  If argument DERIV is not supplied,
  it is taken to be 0.




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
INPROD_BSPLINE  computes matrix of inner products of the derivatives
  of or...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
dot_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1885
  INPROD   Computes matrix of inner products of functions.
  These functions can be:
  (1) regular functional data objects
  (2) basis objects, in which case they are converted to functional
      data objects with the identity matrix as the coefficient matrix.
  Previous versions of INPROD allowed the functions to be bivariate
  or cell objects, but this has been removed for being too complex
  a case to manage.

    If both functions have the same B-spline basis, both Lfdobj's are
       numeric, there is no wtfd argument, and the ranges are the same,
       the inner products are exact, and computed by inprod_bspline.

    Otherwise, by numerical integration using Romberg integration 
       with the trapezoidal rule.

  Arguments:
  FDOBJ1 and FDOBJ2 ... These may be either functional data or basis 
     function objects.  In the latter case, a functional data object
     is created from a basis function object by using the
     identity matrix as the coefficient matrix.
     If FDOBJ2 is not provided or is empty, it defaults to a function
     having a constant basis and coefficient 1 for all replications. 
     This permits the evaluation of simple integrals of functional data
     objects.
  LFDOBJ1 and LFDOBJ2 ...  linear differential operators for inner product 
     for FD1 and FD2, respectively.  Default to 0.  
  RNG  ...  Limits of integration, defaults to basis range.
  WTFD ...  A functional data object defining a weight function, 
            defaults to [].
  EPS  ...  A convergence criterion, defaults to 1e-4.
  JMAX ...  Maximum number of Richardson extrapolation iterations.
            Defaults to 15.
  JMIN ...  Minimum number of Richardson extrapolation iterations.
            Defaults to 5.
  Return:
  A NREP1 by NREP2 matrix INPRODMAT of inner products for each possible 
  pair of functions.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 58
  INPROD   Computes matrix of inner products of functions.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
eigen_pda


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1300

 eigen_pda

 A graphical stability analysis of the result of a principal differential
 analysis. Computes the instantaneous Eigenvalues and stable points of a
 time-varying linear differential equation. 

 Arguments:

   - bwtcell, awtcell: lists defining the alpha and beta functions as
   returned by pda_cell. 

   - ufdcell: list of forcing functions as given to pda_cell.

   - plotresult: should the stability analysis be plotted? Defaults to
   true. 

   - npts: number of time points at which to evaluate the stability
   analysis. Defaults to 501. 

 Returns:

   If plotres is non-zero a graph is produced giving the real and
   imaginary eigenvalues of the system at each of npts time points.
   Positive real values indicate a system undergoing exponential growth,
   negative real values indicate decay to a fixed point. Non-zero
   imaginary values indicate a system that is oscillating. 

   If ufdcell is not empty a third pane is created giving the stable
   points of the system at each time. 

   In addition, it returns

   - tfine: time points at which the stability analysis is plotted

   - eigvals: a matrix of eigenvalues; rows correspond to tfine

   - limvals: a matrix of stable points of the system, rows correspond to
   tfine. 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80

 eigen_pda

 A graphical stability analysis of the result of a principal ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 14
eval_FEM_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 713
 EVAL_FEM_BASIS evaluates the FEM basis object at points in (Xvec,Yvec)

 Arguments:
 Xvec     ... an vector of x-coordinates of length N.  This may also be
              a matrix with two columns, in which case the first column
              is assigned to Xvec and the second to Yvec.
 Yvec     ... an vector of y-coordinates of length N.
 BASISOBJ ... A functional basis object of the FEM type.
 NDERIVS  ... A vector of length 2 containing the orders of derivatives
              for X and Y, respectively.
 
        output:
 EVALMAT   an array of the same size as Xvec and Yvec containing the value  
           of FELSPLOBJ at (Xvec,Yvec).

  Last modified on 29 October 2014 by Jim ramsay.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 EVAL_FEM_BASIS evaluates the FEM basis object at points in (Xvec,Yvec)

 A...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
eval_FEM_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 707
 EVAL_FEM_FD evaluates the FEM fd object at points (Xvec,Yvec)

 Arguments:
 PTS        ... A two-column matrix with row dimension N.
                The first column contains the X-coordinates of the points
                where observations have been made, and the second column
                contains their Y-coordinates.
 FDOBJ   ... A functional data object whose basis is of the FEM type.
 NDERIVS ... A vector of length 2 containing the orders of derivatives
             for X and Y, respectively.
 
        output:
 EVALMAT   an array of the same size as Xvec and Yvec containing the value  
           of FELSPLOBJ at (Xvec,Yvec).

  Last modified on 15 June 2017 by Jim ramsay.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 EVAL_FEM_FD evaluates the FEM fd object at points (Xvec,Yvec)

 Arguments:...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
eval_FEM_fd_try


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 46
  test eval_FEM_fd for computing derivatives



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 46
  test eval_FEM_fd for computing derivatives




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
eval_TP_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 432
 EVAL_TP_FD evaluates the TP fd object at points (Xvec,Yvec)

        arguments:
 FELSPLOBJ a FELspline object
 XVEC   ... an array of x-coordinates.
 YVEC   ... an array of y-coordinates.
 XDERIV ... order of derivative with respect to x
 YDERIV ... order of derivative with respect to y
 
        output:
 SURFARRAY an array of the same size as Xvec and Yvec containing the value  
           of FDOBJ at (Xvec,Yvec).



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 EVAL_TP_FD evaluates the TP fd object at points (Xvec,Yvec)

        argum...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
eval_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1031
  EVAL_BASIS evaluates a basis at argument values EVALARG.  It
  essentually just calls getbasismatrix in the @basis folder,
  with repeated calls if Lfdobj is anything other than a nonnegative 
  integer.

  GETBASISMATRIX   Computes the basis matrix evaluated at arguments in
    EVALARG associated with basis.fd object BASISOBJ.
    The returned basis matrix BASISMAT contains the basis
    derivatives of order NDERIV (0 by default).

  LFDOBJ is a functional data object defining the order m 
  HOMOGENEOUS linear differential operator of the form
  Lx(t) = w_0(t) x(t) + ... + w_{m-1}(t) D^{m-1}x(t) + D^m x(t) + 

  Arguments:
  EVALARG ... A vector of values at which all functions are to 
              evaluated.
  BASISOBJ ... A basis object
  LFDOBJ   ... A linear differential operator object
              applied to the functions that are evaluated.

  Note that the first two arguments may be interchanged.

  Returns:  An array of function values corresponding to the evaluation
              arguments in EVALARG



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 58
  EVAL_BASIS evaluates a basis at argument values EVALARG.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
eval_bifd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 315
EVAL_BIFD  evaluates a bi-functional data object BIFD
  at argument values in arrays SEVALARG and TEVALARG.
  SLfd and TLfd are either integers giving the order of derivative,
  or linear differential operators to be applied before evaluation.
  Their defaults are 0, meaning that the function itself is evaluated.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
EVAL_BIFD  evaluates a bi-functional data object BIFD
  at argument values in...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
eval_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 722
  EVAL_FD evaluates a functional data observation at argument
  values EVALARG.

  LFDOBJ is a functional data object defining the order m
  HOMOGENEOUS linear differential operator of the form
  Lx(t) = w_0(t) x(t) + ... + w_{m-1}(t) D^{m-1}x(t) +
          \exp[w_m(t)] D^m x(t) + ...

  Arguments:
  EVALARG ... A vector of values at which all functions are to
              evaluated.
  FDOBJ   ... Functional data object
  LFDOBJ  ... A linear differential operator object
              applied to the functions that are evaluated.

  Note that the first two arguments may be interchanged.

  Returns:  An array of function values corresponding
              to the evaluation arguments in EVALARG



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  EVAL_FD evaluates a functional data observation at argument
  values EVALA...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
eval_fdVar_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 756
  EVAL_FD evaluates a functional data observation at argument
  values EVALARG for a fdVar type basis object

  LFDOBJ is a functional data object defining the order m
  HOMOGENEOUS linear differential operator of the form
  Lx(t) = w_0(t) x(t) + ... + w_{m-1}(t) D^{m-1}x(t) +
          \exp[w_m(t)] D^m x(t) + ...

  Arguments:
  EVALARG ... A vector of values at which all functions are to
              evaluated.
  FDOBJ   ... Functional data object
  LFDOBJ  ... A linear differential operator object
              applied to the functions that are evaluated.

  Note that the first two arguments may be interchanged.

  Returns:  An cell array of function values corresponding
              to the evaluation arguments in EVALARG



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  EVAL_FD evaluates a functional data observation at argument
  values EVALA...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
eval_mon


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 745
  Evaluates a monotone functional object, 
    or one of its derivatives. 
  The monotone functional data object h  is = the form
           h(x) = (D^{-1} exp Wfdobj)(x)
  where  D^{-1} means taking the indefinite integral.
  Note that the linear differential operator object LFDOBJ
  MUST be an integer in the range 0 to 3.
  Note that the first two arguments may be interchanged.

  Arguments:
  EVALARG ... A vector of values at which all functions are to 
              evaluated.
  WFDOBJ  ... Functional data object.  
  LFDOBJ  ... A linear differential operator object
              applied to the functions that are evaluated.

  Returns:  An array of function values corresponding to the evaluation
              arguments in EVALARG



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 73
  Evaluates a monotone functional object, 
    or one of its derivatives.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
eval_monfd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 745
  Evaluates a monotone functional object, 
    or one of its derivatives. 
  The monotone functional data object h  is = the form
           h(x) = (D^{-1} exp Wfdobj)(x)
  where  D^{-1} means taking the indefinite integral.
  Note that the linear differential operator object LFDOBJ
  MUST be an integer in the range 0 to 3.
  Note that the first two arguments may be interchanged.

  Arguments:
  EVALARG ... A vector of values at which all functions are to 
              evaluated.
  WFDOBJ  ... Functional data object.  
  LFDOBJ  ... A linear differential operator object
              applied to the functions that are evaluated.

  Returns:  An array of function values corresponding to the evaluation
              arguments in EVALARG



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 73
  Evaluates a monotone functional object, 
    or one of its derivatives.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
eval_penalty


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1589
  EVAL_PENALTY evaluates the inner products of a linear
  differential operator L defined by LFDOBJ applied to a set of
  basis functions defined by BASISOBJ.

  LFDOBJ is a functional data object defining the order m
  NONHOMOGENEOUS linear differential operator of the form
  Lx(t) = w_0(t) x(t) + ... + w_{m-1}(t) D^{m-1}x(t) +
          \exp[w_m(t)] D^m x(t) + ...
          a_1(t) u_1(t)  + ... + a_k(t) u_k(t).
  This is a change from previous usage where LFDOBJ was assumed to
  define a HOMOGONEOUS differential operator.  See function
  @Lfd/Lfd() for details.

  Arguments:
  BASISOBJ ... Either a basis object or an fd object or
               an fdPar object.  If an fdPar object,
               and if no LFDOBJ is supplied, the LFDOBJ
               in the fdPar object is used.
  LFDOBJ   ... A linear differential operator object
               applied to the functions that are evaluated.
  RNG      ... A range over which the product is evaluated

  Returns:
  PENALTYMAT ... Symmetric matrix containing inner products.
                 This matrix should be non-negative definite
                 With NDERIV zero eigenvalues, where NDERIV
                 is the highest order derivative in LFDOBJ.
                 However, rounding error will likely cause
                 NDERIV smallest eigenvalues to be nonzero,
                 so be careful about calling CHOL or otherwise
                 assuming the range is N - NDERIV.
  ITER       ... Number of iterations taken in INPROD if
                 it is called.  Otherwise 0.




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  EVAL_PENALTY evaluates the inner products of a linear
  differential opera...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
eval_pos


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 663
  Evaluates a value or a derivative of a positive functional  
  data object. 
  A positive functional data object h  is = the form
           h(x) = (exp Wfdobj)(x)
  Note that the first two arguments may be interchanged.

  Arguments:
  EVALARG ... A vector of values at which all functions are to 
              evaluated.
  WFDOBJ  ... Functional data object.  It must define a single
              functional data observation.
  LFDOBJ  ... A linear differential operator object
              applied to the functions that are evaluated.

  Returns:  An array of function values corresponding to the 
              argument values in EVALARG



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 78
  Evaluates a value or a derivative of a positive functional  
  data object.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
evaldiag_bifd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 311
EVALDIAG_BIFD  evaluates a bi-functional data object BIFD
  with both argument values in array EVALARG.
  SLfd and TLfd are either integers giving the order of derivative,
  or linear differential operators to be applied before evaluation.
  Their defaults are 0, meaning that the function itself is evaluated.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
EVALDIAG_BIFD  evaluates a bi-functional data object BIFD
  with both argumen...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
expon


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 661
EXPON Computes values of the exponentials, or their derivatives.
  RATEVEC is a vector containing the rate constants, or mulipliers of X
    = the exponent of e.
  The default is the exponential function.
  Arguments are as follows:
  EVALARG ... A vector of values at which the polynomials are to
              evaluated
  RATEVEC ... a vector containing the rate constants, or mulipliers of X
              = the exponent of e.
  NDERIV  ... highest order derivative.  0 means only function values
             are returned.
  Return is a matrix with length(X) rows and NRATE columns containing
  the values of the exponential functions or their derivatives.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 64
EXPON Computes values of the exponentials, or their derivatives.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
exponpen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 262
EXPONPEN computes the exponential penalty matrix for penalty LFD.
  Arguments:
  BASISOBJ ... a basis.fd object of type 'expon'
  LFDOBJ   ... a linear differential operator to be penalized. 
               Default is 2.
  Returns PENALTYMAT, the penalty matrix



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 65
EXPONPEN computes the exponential penalty matrix for penalty LFD.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
fDeriv


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 35
 Dfdobj = fDeriv(fdobj, nderiv)




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 35
 Dfdobj = fDeriv(fdobj, nderiv)





# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
fRegress


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 3025
  FREGRESS  Fits a functional linear model using multiple 
  functional independent variables with the dependency being 
  pointwise or concurrent.  
  The case of a scalar independent variable is included by treating
  it as a functional independent variable with a constant basis
  and a unit coefficient.

  Arguments:
  YFDPAR   ... an object for the dependent variable, 
               which may be: 
                   a functional data object, 
                   a functional parameter (fdPar) object, or 
                   a vector
  XFDCELL  ... a cell object of length p with each cell 
               containing an object for an independent variable.
               the object may be: 
                   a functional data object or
                   a vector
  BETACELL ... a cell object of length p with each cell
               containing a functional parameter object for 
               the corresponding regression function.
  WT       ... a vector of N nonnegative weights for observations,
               where N is the number of observations. 
  Y2CMAP   ... the matrix mapping from the vector of observed values
               to the coefficients for the dependent variable.
               This is output by function SMOOTH_BASIS.  If this is
               supplied, confidence limits are computed, otherwise not.
  SIGMAE   ... Estimate of the covariances among the residuals.  This
               can only be estimated after a preliminary analysis
               with FREGRESS.
  
  Returns:  
  FREGRESSSTRUCT...  A struct object containing members with names:
    yfdPar      ... first  argument of FREGRESS
    xfdcell     ... second argument of FREGRESS
    betacell    ... third  argument of FREGRESS
    betahat     ... estimated regression functions 
    yhat        ... if yfdPar is a functional parameter object, this is a
                    functional data object containing fitted functions
                    if yfdPar is a vector, this is a vector containing
                    fitted values
    Cmat        ... coefficient matrix for the linear system defining
                    the regression coefficient basis vector
    Dmat        ... right side vector for the linear system defining
                    the regression coefficient basis vector
    Cmatinv     ... inverse of the coefficient matrix, needed for
                    function FREGRESS_STDERR that computes standard errors
    wt          ... weights for observations
    df          ... degrees of freedom for fit
    y2cMap      ... input matrix mapping y observations into y
                    coefficients
    SigmaE      ... input covariance of residuals
    betastderr  ... estimated standard error functional data objects for
                    for regression coefficiens
    bvar        ... covariance matrix for coefficients defining regression
                    functions
    c2bMap      ... matrix mapping y coefficients into b coefficients



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  FREGRESS  Fits a functional linear model using multiple 
  functional inde...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
fRegress_CV


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 218
 FREGRESS_CV computes cross-validated error sum of squares
 for scalar or functional responses. NOTE: ordinary and
 generalized cross validation scores are now returned by fRegress
 when scalar responses are used.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 FREGRESS_CV computes cross-validated error sum of squares
 for scalar or fu...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 17
fRegress_argcheck


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 119
  FREGRESS_ARGCHECK checks the first four arguments for the functions
  for function regression, including FREGRESS.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  FREGRESS_ARGCHECK checks the first four arguments for the functions
  for ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
fRegress_stderr


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1363
  FREGRESS.STDERR  computes standard error estimates for regression
       coefficient functions estimated by function FREGRESS.

  Arguments:
  
  FREGRESSCELL ... a cell object produced by function FREGRESS.
  Y2CMAP       ... the matrix mapping from the vector of observed values
                   to the coefficients for the dependent variable.  
                   This is output by function SMOOTH_BASIS.  If this is 
                   supplied, confidence limits are computed, otherwise not.
  SIGMAE       ... Estimate of the covariances among the residuals.  This
                   can only be estimated after a preliminary analysis 
                   with FREGRESS.
  
  Returns:  
  BETASTDERRCELL ... a cell array object, each element containing a fdPar 
                     object for the standard error of a regression function.
  BVARIANCE      ... the symmetric matrix of sampling variances and
                     covariances for the matrix of regression coefficients
                     for the regression functions.  These are stored
                     column-wise in defining BVARIANCE.  This is only 
                     computed if the argument Y2CMAP is supplied.
  C2BMAP         ... the matrix mapping from response variable coefficients 
                     to coefficients for regression coefficients



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  FREGRESS.STDERR  computes standard error estimates for regression
       c...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
fSection


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1859
  fSection sections an fdobject FDIN by representing the
  input function restricted to each of a set of
  intervals as a separate fd object using the basis
  supplied in argument BASISOBJ.  
  This procedure implies that each of the section objects
  is defined over a fixed common range that is
  supplied in the basis object.  This common range need
  not correspond in any way to the range of the original
  fdobject, and could, for example, be simply [0,1].
  If there are M sections, each is defined by M-1 strictly
  increasing cutpoints in argument CUTPOINTS. The first
  of these cutpoints must be greater than the lower limit
  in the range over which FDIN is defined, and the last
  must be strictly less that the upper limit for FDIN. 
  FDOUT will contain M replications.
  Each section's fdobj will be defined by smoothing
  N equally spaced values over the section, where 
  N >= the number of basis functions in BASISOBJ.
  N may be supplied as an argument, or it may be default
  to the number of basis functions in BASISOBJ.
  The level of smoothing is controlled by smoothing
  parameter lambda, which defaults to 1e-10; and
  by linear differential operator LFDIN, which
  defaults to 2.  If a warning message about singularity
  is issued by smooth_basis, lambda may need to be 
  increased, or, alternatively, n can be increased.  
  This interpolation procedure will guarantee that the
  position and the shape of a number of derivatives will
  be preserved over the interval, where the number of
  derivatives to be preserved depends on the order of 
  BASISOBJ.  
  The sections can correspond to one or more derivatives of
  FDIN by controlling the argument LFDOUT, which defaults
  to 0.  Of course, the order of the highest derivative
  in LFDOUT must be consistent with the order of BASISOBJ.  



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  fSection sections an fdobject FDIN by representing the
  input function re...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
fbplot


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
default values



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
default values




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
fd2cell


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 194
FD2CELL converts a univariate functional data object to a cell
  object, mainly for purposes of defining a linear differential
  operator object where the arguments are required to be cells.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
FD2CELL converts a univariate functional data object to a cell
  object, mai...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
fdParcheck


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 36
 fdParobj = fdParcheck(fdParobj)




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 36
 fdParobj = fdParcheck(fdParobj)





# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
fourier


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 230
  FOURIER  Computes the NDERIV derivative of the Fourier series basis
    for NBASIS functions with period PERIOD, these being evaluated
    at values in vector EVALARG.
  Returns an N by NBASIS matrix BASISMAT of function values



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  FOURIER  Computes the NDERIV derivative of the Fourier series basis
    for...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
fourier_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 516
FOURIER_BASIS  Creates a fourier functional data basis.
  This function is identical to CREATE_FOURIER_BASIS.
  Arguments ...
  RANGEVAL ... an array of length 2 containing the lower and upper
               boundaries for the rangeval of argument values
  NBASIS   ... the number of basis functions
  PERIOD   ... The period.  That is, the basis functions are periodic on
                 the interval (0,PARAMS) or any translation of it.
  Returns
  BASIS_fd  ... a functional data basis object of type 'fourier'



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 55
FOURIER_BASIS  Creates a fourier functional data basis.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
fourierpen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 215
FOURIERPEN computes the fourier penalty matrix for penalty LFD.
  Arguments:
  BASISOBJ ... a basis object
  LFDOBJ   ... a linear differential operator object
  Returns: 
  PENALTYMAT ... the penalty matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 63
FOURIERPEN computes the fourier penalty matrix for penalty LFD.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 14
fourierpendiag


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 60
  FOURIERPENDIAG Computes fourier penalty in diagonal case



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 60
  FOURIERPENDIAG Computes fourier penalty in diagonal case




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
funcint


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 67
  ---------------------------------------------------------------



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 67
  ---------------------------------------------------------------




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
geigen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 396
  GEIGEN  solve the generalized eigenanalysis problem

    max tr L'AM / sqrt(tr L'BL tr M'CM) w.r.t. L and M

  Arguments:
  AMAT ... p by q matrix
  BMAT ... order p symmetric positive definite matrix
  CMAT ... order q symmetric positive definite matrix
  Returns:
  VALUES ... vector of length s = min(p,q) of eigenvalues
  LMAT   ... p by s matrix L
  MMAT   ... q by s matrix M



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  GEIGEN  solve the generalized eigenanalysis problem

    max tr L'AM / sq...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
getbasispenalty


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 61
GETBASISPENALTY has been replaced by function EVAL_PENALTY.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 59
GETBASISPENALTY has been replaced by function EVAL_PENALTY.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
getfdlabels


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 45
  fdnames must be a cell object of length 3



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 45
  fdnames must be a cell object of length 3




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
glm_fda


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1781
GLM_FDA Fits a generalized linear model with regularization. 
  This function is called by function smooth_GLM
  Arguments:

  XMAT    ... a N by NBASIS matrix of values of basis functions 
  YMAT    ... May be:
                a N by NCURVE matrix of data to be fitted
                or, in the binomial case with local sample sizes M_i,
                a cell array of length 2, the first of which cantains
                the matrix above containing observed frequencies,
                and the second of which contains the corresponding 
                sample sizes.  Note that in the binary or Bernoulli case,
                Y is a matrix of 1's and 0's and the M's are
                taken to be 1's.
  DISTR   ... a string indicating which of the five GLM family members
              is assumed:
              'normal' or 'gaussian' or 'Gaussian'
              'binomial' or 'binary' or 'Bernoulli'
              'poisson'
              'gamma'
              'inverse gaussian' or 'inverse Gaussian'
              or a cell array of length(N) with each cell containing
              a specification of the GLM family of a single observation.
  LAMRMAT ... a \lambda R, that is, a roughness penalty matrix R of 
              order equal to the number of basis functions used or number
              of columns of Xmat multiplied by a scalar roughness 
              penalty parameter \lambda
  WTVEC   ... a vector of prior weights, such as the inverses of the
              relative variance of each observation.
  BVEC0   ... starting values for regression coefficients
  ADDTERM ... a addterm with a coefficient fixed at 1.0.

  Returns:
  BVEC     ... Final estimate of coefficients
  DEVIANCE ... Deviance values

   Last modified 15 September 2014 by Jim Ramsay



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 60
GLM_FDA Fits a generalized linear model with regularization.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
glm_mda


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2163
GLM_MDA Fits a generalized linear model with regularization to a
  N by M matrix of data, each column having a potentially different
  GLM model.
  Arguments:

  YCELL    ... May be:
                 an N by P matrix of data to be fitted or a cell array
                 of length P.  
                 For the matrix format, the binomial data case for any
                 column is not permitted, but a column can contain only
                 0's and 1's, in which case the glm family is 'binary'.
                 If one or more of the observations are in the binomial
                 family, then the celld array format is required because
                 in the binomial case with local sample sizes M_i,
                 a cell array of length 2 is required in the corresponding
                 cell of YCELL, the first cell of which contains the 
                 observed frequencies, and the second of which contains  
                 the corresponding sample sizes. 
  ZMAT     ... An N by Q matrix of covariates or independent variable
               values.
  DISTCELL ... A cell array of length P, each cell of which contains
               a string indicating which of the five GLM family members
               is assumed:
                 'normal' or 'gaussian' or 'Gaussian'
                 'binomial' or 'binary' or 'Bernoulli'
                 'poisson'
                 'gamma'
                 'inverse gaussian' or 'inverse Gaussian'
  LAMRMAT  ... a \lambda R, that is, a roughness penalty matrix R of 
               order equal to the number of basis functions used or number
               of columns of Zmat multiplied by a scalar roughness 
               penalty parameter \lambda
  WTVEC    ... a vector of prior weights, such as the inverses of the
               relative variance of each observation.
  Bmat0    ... starting values for regression coefficients
  ADDTERM  ... a addterm with a coefficient fixed at 1.0.

  Returns:
  BMAT     ... Final estimate of regression coefficients
  MU       ... Matrix of estimated expectations
  FVAL     ... Penalized deviance value

   Last modified 18 November 2014 by Jim Ramsay



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
GLM_MDA Fits a generalized linear model with regularization to a
  N by M mat...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
grdHessm


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 217
Input
       - f is the function
       - x is the differentiation point (vector valued)
       - toler is the tolerance for the relative error
Output 
       - grd is the gradient
       - Hess is the Hessian



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
Input
       - f is the function
       - x is the differentiation point (v...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
harmaccel


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 103
  Creates a a linear differential operator object of class Lfd.
  The basis must be a Fourier basis.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 63
  Creates a a linear differential operator object of class Lfd.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
hfngrad


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 293
 HFNGRAD computes the values at times in XFINE of:
    the warping h
    the gradient of h with respect to coefficients
  h(t) is defined as h(t) = M(t) / M(XHI-XLO) where
                     M(t) = int_0^t exp[W(u)] du
  It is assumed that the last value in XFINE = XHI - XLO = WIDTH.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 HFNGRAD computes the values at times in XFINE of:
    the warping h
    th...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 4
ij2m


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 148
IJ2M sets up a NROW by NCOL matrix of indices of entries ordered row-wise
 example:  ij2m(2,3) produces
            1  2  3
            4  5  6



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
IJ2M sets up a NROW by NCOL matrix of indices of entries ordered row-wise
 e...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
inprod


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1883
  INPROD   Computes matrix of inner products of functions.
  These functions can be:
  (1) regular functional data objects
  (2) basis objects, in which case they are converted to functional
      data objects with the identity matrix as the coefficient matrix.
  Previous versions of INPROD allowed the functions to be bivariate
  or cell objects, but this has been removed for being too complex
  a case to manage.

    If both functions have the same B-spline basis, both Lfdobj's are
       numeric, there is no wtfd argument, and the ranges are the same,
       the inner products are exact, and computed by inprod_bspline.

    Otherwise, by numerical integration using Romberg integration 
       with the trapezoidal rule.

  Arguments:
  FDOBJ1 and FDOBJ2 ... These may be either functional data or basis 
     function objects.  In the latter case, a functional data object
     is created from a basis function object by using the
     identity matrix as the coefficient matrix.
     If FDOBJ2 is not provided or is empty, it defaults to a function
     having a constant basis and coefficient 1 for all replications. 
     This permits the evaluation of simple integrals of functional data
     objects.
  LFDOBJ1 and LFDOBJ2 ...  linear differential operators for inner product for
     FD1 and FD2, respectively.  Default to 0.  
  RNG  ...  Limits of integration, defaults to basis range.
  WTFD ...  A functional data object defining a weight function, 
            defaults to [].
  EPS  ...  A convergence criterion, defaults to 1e-4.
  JMAX ...  Maximum number of Richardson extrapolation iterations.
            Defaults to 15.
  JMIN ...  Minimum number of Richardson extrapolation iterations.
            Defaults to 5.
  Return:
  A NREP1 by NREP2 matrix INPRODMAT of inner products for each possible pair
  of functions.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 58
  INPROD   Computes matrix of inner products of functions.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 14
inprod_TPbasis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1228
  INPROD_TPBASIS  Computes vectorized four-tensor of inner products of the
    tensor product of values of respective linear differential operators
    applied to four bases.  
    The inner products are approximated by numerical integration using  
    Romberg integration with the trapezoidal rule. 
    The inner s can be over a reduced range in RNG and use a 
    scalar weight function in WTFD.

  Arguments:
  BASIS1, BASIS2, BASIS3 and BASIS4 ...  these are basis objects,
            and the inner products of all quadruples of 
            BASIS1, BASIS2, BASIS3 and BASIS4 are computed.
  LFDOBJ1, LFDOBJ2, LFDOBJ3 and LFDOBJ4 ... linear differential operators  
                    for the corresponding basis functions.
  RNG  ...  Limits of integration
  WTFD ...  A functional data object defining a weight
  EPS  ...  A convergence criterion, defaults to 1e-4.
  JMAX ...  Maximum number of Richardson extrapolation iterations.
            Defaults to 16.
  JMIN ...  Minimum number of Richardson extrapolation iterations.
            Defaults to 5.

  Return:
  An order NBASIS1*NBASIS2*NBASIS3*NBASIS4 matrix SS of inner products 
  for each possible pair quadruple of basis functions.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  INPROD_TPBASIS  Computes vectorized four-tensor of inner products of the
 ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
inprod_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1198
  INPROD_BASIS  Computes matrix of inner products of bases.
    If both are B-spline bases, both Lfdobj's are
       numeric, there is no wtfd argument, and the ranges are the same,
       the inner products are exact, and computed by inprod_bspline.
    Otherwise, by numerical integration using Romberg integration 
       with the trapezoidal rule.

  Arguments:
  BASIS1 and BASIS2 ...  these are basis objects.
  Lfdobj1 and Lfdobj2 ...  differential operators for inner product for
                    BASIS1 and BASIS2, respectively
  RNG  ...  Limits of integration
  WTFD ...  A functional data object defining a weight
  MMAT ...  A metric matrix for the vector inner product computed
            at each step.  The number of rows must equal to
            NBASIS1 and number columns to NBASIS2.  Defaults to empty.
  EPS  ...  A convergence criterion, defaults to 1e-4.
  JMAX ...  Maximum number of Richardson extrapolation iterations.
            Defaults to 15.
  JMIN ...  Minimum number of Richardson extrapolation iterations.
            Defaults to 5.

  Return:
  A NREP1 by NREP2 matrix SS of inner products for each possible pair
  of basis functions.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 59
  INPROD_BASIS  Computes matrix of inner products of bases.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 14
inprod_bspline


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 449
INPROD_BSPLINE  computes matrix of inner products of the derivatives
  of order DERIV1 and DERIV2 of two functional data objects
  FD1 and FD2, respectively.
  These must both have Bspline bases, and these bases must have
  a common break point sequence.   However, the orders can differ.
  If only the first argument is present, the inner products of
  FD1 with itself is taken.  If argument DERIV is not supplied,
  it is taken to be 0.




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
INPROD_BSPLINE  computes matrix of inner products of the derivatives
  of or...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
insideIndex


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 256
  insideIndex returns the index of the triangle containing the point
 (X,Y) if such a triangle exists, and NaN otherwise.
  TRICOEF may have already been calculated for efficiency,
  but if the function is called with four arguments, it is calculated.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  insideIndex returns the index of the triangle containing the point
 (X,Y) ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
int2Lfd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 478
INT2LFD converts a nonnegative integer to a linear differential
  operator object that is equivalent to D^m.  The range of the
  functional data object in any cell is set to [0,1], and is
  not actually used when a linear differential operator object
  of this nature is applied.  
  In the event that m is already a linear differential operator
  object, it returns the object immediately.  Thus, INT2LFD can
  be used to screen whether an object is an integer or not.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
INT2LFD converts a nonnegative integer to a linear differential
  operator o...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
intensity_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 128
INTENSITY_FD estimates the intensity function \lambda(x) of a 
  nonhomogeneous Poisson process from a sample of event times.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
INTENSITY_FD estimates the intensity function \lambda(x) of a 
  nonhomogene...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
is_diag


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 182
  tests a matrix for being diagonal
  C   ... matrix to be tested
  EPS ... testing criterion: max off-diagonal element over min diagonal
          element must be less than EPS



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  tests a matrix for being diagonal
  C   ... matrix to be tested
  EPS ......



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
isa_Lfd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 73
  ISA_LFD  checks argument is either integer or functional data object.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 71
  ISA_LFD  checks argument is either integer or functional data object.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
isa_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 65
  ISA_BASIS  checks a struct object for fields for basis objects



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 65
  ISA_BASIS  checks a struct object for fields for basis objects




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
isa_bibasis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 69
  ISA_BIBASIS  checks a struct object for fields for bibasis objects



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 69
  ISA_BIBASIS  checks a struct object for fields for bibasis objects




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
isa_bifd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 69
  ISA_BIFD  checks a struct object for fields 'coef' and 'basisstr'



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 69
  ISA_BIFD  checks a struct object for fields 'coef' and 'basisstr'




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
isa_bifdPar


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 64
  ISA_FDPAR  checks an object to see if it is of the FD class 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 64
  ISA_FDPAR  checks an object to see if it is of the FD class 




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
isa_double


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 51
  ISA_DOUBLE checks X for having the DOUBLE class



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 51
  ISA_DOUBLE checks X for having the DOUBLE class




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
isa_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 43
  ISA_FD checks X for having the FD class



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 43
  ISA_FD checks X for having the FD class




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
isa_fdPar


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 64
  ISA_FDPAR  checks an object to see if it is of the FD class 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 64
  ISA_FDPAR  checks an object to see if it is of the FD class 




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
isotone


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 123
  ISOTONE computes the isotonic regression function,
  the monotonic polygonal line that minimizes error
  sum of squares.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  ISOTONE computes the isotonic regression function,
  the monotonic polygona...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
lambda2df


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 119
  LAMBDA2DF computes degrees of freedom for a regularized basis smooth
    by computing the trace of the hat matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  LAMBDA2DF computes degrees of freedom for a regularized basis smooth
    b...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
lambda2gcv


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 164
  LAMBDA2GCV smooths data using smooth_basis and returns the 
  GCV criterion that results.  DFFACTOR is an optional multiplier of df
  in the definition of GCV



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  LAMBDA2GCV smooths data using smooth_basis and returns the 
  GCV criterio...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
landmarkreg


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2144
  LANDMARKREG ... Register curves using landmarks.
  Arguments:
  FDOBJ     ...  a functional data object for curves to be registered
  XIMARKS   ...  N by NL array of times of interior landmarks for
                 each observed curve
  XOMARKS   ...  vector of length NL of times of interior landmarks for
                 target curve
  WFDPAROBJ ...  A functional parameter object used to define the
                 strictly monotone warping function.  If only three
                 arguments are used, or if this argument is empty, the 
                 registration is by linear interpolation on the landmark
                 times.  In this event, neither MONWRD nor YLAMBDA is
                 used.
  MONWRD    ...  If 1, warping functions are estimated by monotone smoothing,
                 otherwise by regular smoothing.  The latter is faster, but
                 not guaranteed to produce a strictly monotone warping 
                 function.  If MONWRD is 0 and an error message results 
                 indicating nonmonotonicity, rerun with MONWRD = 1.
                 Default:  1
  YLAMBDA    ... smoothing parameter to be used in computing the registered
                 functions.  For high dimensional bases, local wiggles may be 
                 found in the registered functions or its derivatives that are
                 not seen in the unregistered functions.  In this event, this
                 parameter should be increased until they disappear.             
  Returns:
  REGFD  ...  A functional data object for the registered curves
  WARPFD ...  A functional data object for the warping functions.  
              This tends only to be useful if monwrd = 0.
  WFD    ...  A Functional data object for function W defining 
              warping fns.  This is only produced for monwrd = 1.
              The warping function values for case i require code 
              of the form
                     harg    = monfn(evalarg, Wfd(i));
                     width   = rng(2) - rng(1);
                     warpvec = rng(1) + width.*harg./rng(2);
              where rng is the argument range vector.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 17
  LANDMARKREG ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
linesrchplot


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 52
undocumented function: [] = linesrchplot (x, dx, fx)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 52
undocumented function: [] = linesrchplot (x, dx, fx)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
linmod


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 798
  LINMOD  Fits an unrestricted or full functional linear model of the form
       y(t) = \alpha(t) + \int x(s) \beta(s,t) ds + \epsilon(t),
  where
       \beta(s,t) = \phi'(s) B \psi(t)
  
  Arguments:
  XFD      ... a functional data object for the independent variable 
  YFD      ... a functional data object for the   dependent variable 
  BETACELL ... a cell array of length 3 containing functional
               parameter objects for \alpha and for 
               \beta as a function of s and t, respectively.
  WTVEC   ... a vector of weights
  Returns:  a struct object LINMODSTR with fields
  ALPHA ... a functional parameter object for \alpha
  BETA  ... a bivariate functional parameter object for \beta
  YHAT  ... a functional data object for the approximation to y



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  LINMOD  Fits an unrestricted or full functional linear model of the form
 ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
llbda2gcv


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 649
 LLBDA2GCV computes the GCV criterion and its derivative
  as a function of log_{10} \lambda where \lambda is the
  smoothing parameter in a call to SMOOTH_BASIS
  Arguments:
  LOGLAMBDA ... logarithm to base 10 of \lambda
  Y         ... data that are smoothed, n by N matrix where
                n is the number of values per record that are
                smoothed and N is the number of records.
  Z         ... n by K matrix of basis functions where K
                is the number of basis functions
  R         ... K by K penalty matrix
  FACTOR    ... Chong Gu's correction factor, suggested as 
                1.2 or 1.4.  



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 LLBDA2GCV computes the GCV criterion and its derivative
  as a function of ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 4
m2ij


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 228
M2IJ sets up a NROW*NCOL by 2 matrix of row-col indices associated
  with a number of matrix entries row-wise
  Example:  m2ij(2,3) produces
     1     1
     1     2
     1     3
     2     1
     2     2
     2     3



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
M2IJ sets up a NROW*NCOL by 2 matrix of row-col indices associated
  with a ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
make_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2041
MAKE_BASIS sets up a simple basis.
  If argument PERIODIC is nonzero, the basis is of type 'fourier',
  else it is of type 'bspline'.
  Argument RANGEVAL determines the range of argument values.  If
  the basis type is 'fourier', this also determines the period.
  The number of basis functions is jointly determined by arguments
  NRESOL and NDERIV.
  For a 'fourier' basis, NBASIS = NRESOL.
  For a 'bspline' basis, NBASIS = NRESOL + NDERIV + 4

  Arguments are as follows:

  RANGEVAL ... A vector of length 2 giving the lower and upper limits
               on argument values, respectively.
  NRESOL   ... The resolution required in the functions.  This means
               the maximum number of features or events that could in
               principle be represented in each observation.  Features
               are things like peaks, valleys, zero crossing, or plateaus.
               The width of a single feature may naturally not be less than 
               the minimum difference between two successive argument values.
               Roughly speaking, NRESOL is the width of the interval in 
               RANGEVAL divided by the width of the narrowest feature that
               requires representation.  NRESOL cannot logically exceed
               the number N of argument values, and for noisy data it should
               be considerably less. A reasonable rule of thumb is to
               NRESOL to 1/3 of the number of sampling points, if these
               are more or less evenly spaced.
  PERIODIC ... Is 0 if the functions are not periodic, and nonzero otherwise.
               It is set to 0 by default.
  NDERIV   ... The highest order of derivative that is needed for the 
               functional data object.  This is set to 2 by default.

  Another option for a simple basis may be the polygonal basis of type 'polyg'
    made by function CREATE_POLYGONAL_BASIS.  Only use this option if no 
    derivatives will be required.

  Last modified  1 December 2000



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 34
MAKE_BASIS sets up a simple basis.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
makenodes


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 3504
  MAKENODES computes information about a triangulation of a polyhedral
  domain and the polynomial basis functions associated with each
  triangle.  A triangle combined with the specification of these 
  bivariate basis polynomials is called a finite element.

  Argument P contains the NVER vertices of the triangles in the
  triangulation, and argument T specifies the three points in P defining
  each of the NELE triangleS.  The degree of the bivariate basis functions  
  is defined by argument ORDER. 

  MAKENODES produces a struct object whose fields contain information 
  about the points input in argument P and the triangles input in 
  argument T conditional on the order of the Lagrangian element input
  in argument ORDER.

  Arguments:
  P     ...  An NVER by 2 matrix of X-Y coordinates of each vertex
             in the triangulation.  If P is input as a 2 by NVER
             matrix, it is transposed
  T     ...  An NELE by 3 matrix, each row of which contains the
             indices of the points in P that define a triangle.  These
             indices must be specified in counter-clockwise order
             beginning with any of the three vertices.  If T is
             input as a 3 by NELE matrix, it is transposed, and if
             input as a 4 by NELE matrix, it's first three rows are
             transposed to define T.
  ORDER ...  The degree of the bivariate polynomials defining the
             basis functions.  
             If ORDER = 1, there are three basis functions.  
             Each of these is  linear, equal to 1 on at one of the
             vertices, and equal to zero on the edge of the triangle
             opposite to this vertex.
             If ORDER = 2, there are six basis functions.
             each of these is quadratic, equal to 1 on either a vertex
             or at a mid-point of an edge, and vanishes on edges not
             containing the point at which it is 1.

  Output:    A struct object with fields:

  ORDER ...  the argument ORDER, which is the degree of each 
             bivariate basis polynomial
  NODES ...  a NNODES*2 matrix whose i'th row contains
		      the coordinates of the i'th nodal variable.
             NODES for the second order element consist of vertices and 
             midpoints of edges, that is, 6 per triangle.
		      The first NVER rows of NODES is P, and the remainder are
             the edge midpoints.
             Nodes for the first order element consist of only vertices 
             in P.
  NODEINDEX ... for ORDER == 2, an nele*6 matrix whose i'th row
		      contains the row numbers (in NODES) of the
		      nodal variables defining the i'th finite 
		      element.  If the i'th row of P is [V1 V2 V3]
		      then the i'th row of nodeindex is
		      [V1 V(12) V2 V(23) V3 V(31)], where Vi is the
		      row number in NODES of the i'th vertex and V(ij) is the 
		      row number in NODES of the midpoint of the edge defined
		      by the i'th and j'th points.
             If NORDER == 1, NODEINDEX is vertex indices T.
  J     ...  Each triangle defines a linear transformation A from a fixed
             right master traingle with vertices (0,0), (1,0) and (0,1)
             to itself.  J contains one-half the Jacobian of this 
             transformation, which is also the area of the triangle.
  METRIC ... The 2 by 2 metric matrix inv(A)' inv(A)

 Last modified on 9 May 2011 by Jim Ramsay.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  MAKENODES computes information about a triangulation of a polyhedral
  dom...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 4
mass


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 888
MASS_NEW produces the mass matrix containing integrals of products of
  nodal functions.  

Input: NODESTRUCT is a struct object produced by function makenodes_new.
    It contains:
        ORDER     ... The order of the element (1 or 2)
        NODES     ... Coordinates of node points
        NODEINDEX ... indices of node points for each element
        JVEC      ... Jacobian of the affine transformation of each
                      element to the master element

Output: K0: the NNOD by NNOD matrix of sums of products of nodal basis
        functions.
        For each element i, the integral of the product 
        of the j'th and k'th shape functions over the i'th element is
        computed.  Then that value is the 
        (NODEINDEX(i,j),NODEINDEX(i,k))'th entry of the i'th elemental 
        mass matrix.

 Last modified on 27 September 2011 by Jim.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
MASS_NEW produces the mass matrix containing integrals of products of
  noda...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
mon_grad_fn


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 127
undocumented function: [mon_grad, mon_hess, mon_cross, basiscell] = mon_grad_fn (y, x, cvec, lambda, basisobj, Kmat, basiscell)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
undocumented function: [mon_grad, mon_hess, mon_cross, basiscell] = mon_grad_...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
monfn


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 566
MONFN evaluates a monotone function  h(x) = (D^{-1} exp Wfd)(x)
  where  D^{-1} means taking the indefinite integral.
  The interval over which the integration takes places is defined in
       the basis object in WFDOBJ.
  A major overhead in this function and MONGRAD is the evaluation
  of the basis functions at the dyadic argument sequence required for
  the trapezoidal rule integration.  This is reduced by storing these
  values in the cells in cell array BASISCELL, each cell corresponding
  to an iteration of the trapezoidal rule, with a maximum of 15.  



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
MONFN evaluates a monotone function  h(x) = (D^{-1} exp Wfd)(x)
  where  D^{-...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
monfn_ODE


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 418
 MONFN_ODE evaluates a monotone function  h(x) = (D^{-1} exp Wfd)(x)
  where  D^{-1} means taking the indefinite integral.
  The interval over which the integration takes places is defined in
       the basis object in WFD.
  In contrast to the older MONFN, this function approximates the 
  solution by solving the initial value differential equation
  corresponding to the indefinite integral defining the function.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 MONFN_ODE evaluates a monotone function  h(x) = (D^{-1} exp Wfd)(x)
  where ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
mongrad


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 612
 MONGRAD evaluates the gradient of a single monotone function of the form
             h(x) = (D^{-1} exp Wfdobj)(x)
  where  D^{-1} means taking the indefinite integral.
  The interval over which the integration takes places is defined in
  the basis object in Wfdobj.
  A major overhead in this function and MONFN is the evaluation
  of the basis functions at the dyadic argument sequence required for
  the trapezoidal rule integration.  This is reduced by storing these
  values in the cells in cell array BASISCELL, each cell corresponding
  to an iteration of the trapezoidal rule, with a maximum of 15.  



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 MONGRAD evaluates the gradient of a single monotone function of the form
   ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
mongrad_ODE


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 418
 MONFN_ODE evaluates a monotone function  h(x) = (D^{-1} exp Wfd)(x)
  where  D^{-1} means taking the indefinite integral.
  The interval over which the integration takes places is defined in
       the basis object in WFD.
  In contrast to the older MONFN, this function approximates the 
  solution by solving the initial value differential equation
  corresponding to the indefinite integral defining the function.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 MONFN_ODE evaluates a monotone function  h(x) = (D^{-1} exp Wfd)(x)
  where ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
monhess


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 868
MONHESS evaluates the second derivative of monotone fn. wrt coefficients
  The function is of the form h(x) = (D^{-1} exp Wfd)(x)
  where  D^{-1} means taking the indefinite integral.
  The interval over which the integration takes places is defined in
       the basis object = WFD.
  The derivatives with respect to the coefficients in WFD up to order
       NDERIV are also computed, max(NDERIV) = 2.
  Arguments:
  X      ... arguments at which function and derivatives are evaluated
             x(1) must be at lower limit, and x(n) at upper limit.
  WFD    ... a functional data object
  Returns:
  D2H  ... values of D2 h wrt c for only those pairs of bsplines
           that overlap.  The number of columns of D2H is 
                    NBASIS*NORDER - NORDER*(NORDER-1)/2
  TVAL ... Arguments used for trapezoidal approximation to integral



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
MONHESS evaluates the second derivative of monotone fn. wrt coefficients
  T...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
monom


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 539
  MONOM  Values of monomials, or their derivatives.
  The powers of EVALARG are the NBASIS nonnegative integers in EXPONENTS.
  The default is 1, meaning EVALARG itself.
  Arguments are as follows:
  EVALARG   ... array of values at which the polynomials are to
                evaluated
  EXPONENTS ... array of nonnegative integer exponents of EVALARG
  NDERIV    ... order of derivative to be returned.
  Return is:
  A matrix with length(EVALARG) rows and NBASIS columns containing
    the values of the monomials or their derivatives



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 51
  MONOM  Values of monomials, or their derivatives.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
monomial


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 704
  MONOMIAL Values of monomials, or their derivatives.
  The powers of EVALARG are the NBASIS nonnegative integers in EXPONENTS.
  The default is 1, meaning EVALARG itself.
  Arguments are as follows:
  EVALARG   ... array of values at which the polynomials are to
                evaluated
  EXPONENTS ... the set of powers of EVALARG to be used
  NDERIV    ... order of derivative to be returned.
  Return is:
  A matrix with length(EVALARG) rows and NBASIS columns containing
    the values of the monomials or their derivatives
  Warning!  There is no protection here against the consequences of using
     large numbers in evalarg.  If monomials need normalizing, this 
     must be done externally.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 53
  MONOMIAL Values of monomials, or their derivatives.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
monomialpen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 447
  MONOMPEN  Computes the monomial penalty matrix.

  Warning:  This version is incomplete in the sense that
    it only works with LFDOBJ = D^m

  Arguments:
  BASISFD  ... a monomial basis object
  LFDOBJ   ... either the order of derivative or a
               linear differential operator to be penalized.
  Returns a list the first element of which is the basis matrix
   and the second element of which is the diagonal of the penalty matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 49
  MONOMPEN  Computes the monomial penalty matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
monompen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 447
  MONOMPEN  Computes the monomial penalty matrix.

  Warning:  This version is incomplete in the sense that
    it only works with LFDOBJ = D^m

  Arguments:
  BASISFD  ... a monomial basis object
  LFDOBJ   ... either the order of derivative or a
               linear differential operator to be penalized.
  Returns a list the first element of which is the basis matrix
   and the second element of which is the diagonal of the penalty matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 49
  MONOMPEN  Computes the monomial penalty matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
mtimesw


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 44
undocumented function: C = mtimesw (A, B, W)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 44
undocumented function: C = mtimesw (A, B, W)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
nsplineM


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 786
  NSPLINEM  Computes values or derivative values of an N-spline basis
  functions as well as a projection matrix to convert the B-spline
  coefficients into N-spline coefficients (via linear projection) 
  Arguments:
  X         ... Argument values for which function values are computed
  BREAKS    ... Increasing knot sequence spanning argument range
  NORDER    ... Order of N-spline (one greater than degree) max = 19
                Default 4.
  NDERIV    ... Order of derivative required, default 0.
  SPARSEWRD ... if 1, return in sparse form
  Return:
  NSPLINEMAT ... length(X) times number of basis functions matrix
                 of Nspline values
  P          ... projection matrix to convert B-spline coefficients to
                 corresponding N-spline coefficients.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  NSPLINEM  Computes values or derivative values of an N-spline basis
  funct...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
nsplinepen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 348
NPLINEPEN computes the N-spline (natural spline) penalty matrix for
penalty LFDOBJ. 
  Arguments:
  BASISOBJ  ... a basis object
  LFDOBJ    ... a linear differential operator object.  
                Default int2Lfd(2)
  RNG       ... A range over which the product is evaluated
  SPARSEWRD ... if 1, return penaltymatrix in sparse storage mode.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
NPLINEPEN computes the N-spline (natural spline) penalty matrix for
penalty L...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
odess


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 51
undocumented function: varargout = odess (varargin)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 51
undocumented function: varargout = odess (varargin)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
pca_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1108
  PCA Functional principal components analysis with regularization

  Arguments:
  FDOBJ     ... Functional data object (a struct object)
  NHARM     ... Number of principal components to be kept. Default 2
  HARMFDPAR ... A functional parameter object specifying the
                basis, differential operator, and level of smoothing
                for eigenfunctions.
  CENTERFNS ... If 1, the mean function is first subtracted from each 
                function.  1 is the default.

  Returns:
  A struct object PCASTR with the fields:
  HARMFD  ... A functional data object for the harmonics or eigenfunctions
  VALUES  ... The complete set of eigenvalues
  HARMSCR ... A matrix of scores on the principal components or harmonics
  VARPROP ... A vector giving the proportion of variance explained
                 by each eigenfunction
  FDHATFD ... A functional data object for the approximation to the
              FDOBJ based on NHARM principal components
  MEANFD  ... A functional data object giving the mean function

  If NHARM = 0, all fields except MEANFD are empty.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  PCA Functional principal components analysis with regularization

  Argum...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
pda_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1230
PDA_FD computes the basis function expansions of the
  estimates of the coefficient functions a_k(t) and b_j(t) 
  in the possibly nonhomogeneous linear differential operator

    Lx(t) = b_0(t)x(t) + b_1(t)Dx(t) + ... + b_{m-1}D^{m-1}x(t) + D^m x(t)
          - a_1(t)u_1(t) - ... - a_k(t)u_K(t) 
  of order m = NORDER that minimizes in a least squares sense the 
  residual functions f(t) = Lx(t).  

  If NORDER = 0, PDACELL fits the varying coefficient or pointwise
  linear model using the functions x(t) as dependent variables and
  the forcing functions u(t) as independent variables.  In this case,
  there must be at least one forcing function.

  The functions x(t) are in functional data object XFDOBJ.
  The forcing functions u_k(t) are in functional data object UFDOBJ.
  The coefficient functions for u_k(t) and x(t) are expanded in terms 
  of basis functions specified in AWTCELL and BWTCELL, respectively.

  The functions u_k(t) and x(t) are assumed to be vector valued 
    of dimension J. 
  That is, the differential equation can be a system of J equations 
    rather than a single equation.   
  Each coefficient function b_j(t) is matrix valued, with a column
    for each scalar function in the system.  



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
PDA_FD computes the basis function expansions of the
  estimates of the coeff...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
pda_overlay


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 672

 pda_overlay

 Creates a bifurcation plot for a one-dimensional 2nd-order partial
 differential analysis. 

 Arguments:
   - bwtcell: a cell array of functional data objects defining the
   coefficients of the principal differential analysis. This is returned
   by pda_cell. 
   
   - nfine: number of time points at which to evaluate the pointwise
   stability of the system. Defaults to 501. 

   - ncoarse: number of time points to give as text values on the plot. 

 Returns:
   Nothing, but produces a plot of beta_1(t) against beta_2(t), marking
   out regions of exponential growth, decay and regions in which cyclic
   behavior is expected. 



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80

 pda_overlay

 Creates a bifurcation plot for a one-dimensional 2nd-order...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 14
phaseplanePlot


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 888
  PHASEPLANEPLOT plots a phase/plane diagram
  Arguments:
  FDOBJ   ... A univariate functional data object
  LFDOBJ1 ... Either a nonnegative integer or a linear differential
              operator argument for variation of the horizonal axis
  LFDOBJ2 ... Either a nonnegative integer or a linear differential
              operator argument for variation of the vertical axis
  PLOTLAB ... Either a cell array of labels for plotted points, or
              a string array containing labels
  PLOTARG ... A vector with same length as the number of rows or cells
              of PLOTLAB indicating independent variable values to be
              plotted.  By default equally spaced within the range.
  Returns:  handle objects:
  PHDL ... handle for the continuous line that is plotted
  THDL ... handle for the plotting labels
  LHDL ... handle for the coordinate axes



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 73
  PHASEPLANEPLOT plots a phase/plane diagram
  Arguments:
  FDOBJ   ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
plot_FEM


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 269
 PLOT  Plots a FEM object FEMFD over its triangular mesh.
 The coefficient vector for FEMfd object defines the heights of the
 surface at the vertices.  The vertices are in
 NBASIS by 2 matrix P extracted from the FEM basis object.

 Last modified on 7 June 2014



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 57
 PLOT  Plots a FEM object FEMFD over its triangular mesh.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
plot_FEM_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 92
 PLOT  Plots a FEM object FDOBJ over a rectangular grid defined by
 vectors Xgrid and Ygrid



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 PLOT  Plots a FEM object FDOBJ over a rectangular grid defined by
 vectors X...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
plot_FEM_mesh


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 43
  Last modified 14 June 2017 by Jim Ramsay



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 43
  Last modified 14 June 2017 by Jim Ramsay




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
plot_beta


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 446
  PLOT_BETA plots a functional parameter along with confidence
  limits.  This function is identical to function plotbeta.
  Arguments:
  BETAESTCELL    ... A cell object containing one or more functional
                     parameter objects or functional data objects.
  BETASTDERRCELL ... A cell object containing functional data objects
                     for the standard error of the objects in
                     BETAESTCELL.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 73
  PLOT_BETA plots a functional parameter along with confidence
  limits.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
plot_cca


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 819
  PLOT_CCA  Plot a functional canonical correlation analysis object.

  If overplt=1  then each pair of weight functions is plotted in
     a single plot.  The line types and colours of the
     'x' and 'y' curves respectively are specified as in plot.str   .
  If overplt=0  then the weight functions are plotted in separate
     plots, side by side if a command like par(mfrow=c(2,2)) is
       used.

  If jcan=0, then all the pairs of variates are plotted.  Otherwise
     only the variates jcan are plotted (eg if jcan=1, only the leading
     variate is plotted, if jcan=c(1,3) only the first and third.)

  If flip(j) is 1 then the jth pair of weight functions are multiplied
     by -1.  If flip is a scalar it is replicated to the necessary length.

  Other arguments are passed to plot_str




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 68
  PLOT_CCA  Plot a functional canonical correlation analysis object.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
plot_fit


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 912
PLOT_FIT plots discrete data along with a functional data object for 
  fitting the data.  It is designed to be used after SMOOTH.BASIS to
  check the fit of the data offered by the FD object.
  Note:  As of March 2, 2009, the arguments CASENAMES, VARNAMES and
  NFINE have been removed.
  This function is identical to function plotfit_fd.
  Arguments:
  Y         ... the data used to generate the fit
  ARGVALS   ... discrete argument values associated with data
  FD        ... a functional data object for fitting the data
  RESIDUAL  ... if nonzero, the residuals are plotted instead of 
                the data plus curve
  SORTWRD   ... sort plots by mean square error
  RNG       ... a range of argument values to be plotted
  INDEX     ... an index for plotting subsets of the curves 
                (either sorted or not)
  NFINE     ... number of points to use for plotting curves



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
PLOT_FIT plots discrete data along with a functional data object for 
  fitt...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
plot_pca_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1004
  PLOT_PCA  Plots the harmonics for a principal components analysis.
  Arguments:
  PCASTR    ... Struct object returned by PCA_FD.
  MATPLT    ... If MATPLT = 0 (the default), then the harmonics
                are displayed one by one with a keystroke to page
                between them.  Otherwise they are displayed together.
  HARM      ... If HARM = 0 (the default) then all the computed harmonics
                are plotted.   Otherwise those in HARM are plotted.
  EXPAND    ... If expand =0 then effect of +/- 2 standard deviations of
                each harmonic are given.
                Otherwise the factor expand is used.
  CYCLE     ... If cycle=T and there are 2 variables then a cycle plot
                will be drawn.  If number of variables is anything else,
                CYCLE will be ignored.
   COLORWRD ... If 0, plus and minus harmonic values are plotted as
                symbols + and - resp., but otherwise, as colors
                green and red.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 68
  PLOT_PCA  Plots the harmonics for a principal components analysis.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
plotbeta


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 394
  PLOTBETA plots a functional parameter along with confidence
  limits
  Arguments:
  BETAESTCELL    ... A cell object containing one or more functional
                     parameter objects or functional data objects.
  BETASTDERRCELL ... A cell object containing functional data objects
                     for the standard error of the objects in
                     BETAESTCELL.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  PLOTBETA plots a functional parameter along with confidence
  limits
  Ar...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
plotfit_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 912
PLOT_FIT plots discrete data along with a functional data object for 
  fitting the data.  It is designed to be used after SMOOTH.BASIS to
  check the fit of the data offered by the FD object.
  Note:  As of March 2, 2009, the arguments CASENAMES, VARNAMES and
  NFINE have been removed.
  This function is identical to function plotfit_fd.
  Arguments:
  Y         ... the data used to generate the fit
  ARGVALS   ... discrete argument values associated with data
  FD        ... a functional data object for fitting the data
  RESIDUAL  ... if nonzero, the residuals are plotted instead of 
                the data plus curve
  SORTWRD   ... sort plots by mean square error
  RNG       ... a range of argument values to be plotted
  INDEX     ... an index for plotting subsets of the curves 
                (either sorted or not)
  NFINE     ... number of points to use for plotting curves



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
PLOT_FIT plots discrete data along with a functional data object for 
  fitt...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
polintmat


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 43
  YA is an 3-D array with 1st D same as XA



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 43
  YA is an 3-D array with 1st D same as XA




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
polyg


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 468
  POLYG Evaluates the basis for a linear interpolant or its first derivative.
  It calls function spcol.
  Arguments are as follows:
  EVALARG ... A vector of values at which the spline functions are to
              evaluated
  ARGVAL  ... a STRICTLY INCREASING sequence of argument values.
  NDERIV  ... Either 0 or 1.  0 means only function values
  Return is a matrix with length(EVALARG) rows and number of columns equal to
             number of argument values



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 77
  POLYG Evaluates the basis for a linear interpolant or its first derivative.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
polygpen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 271
POLYGPEN computes the polygonal penalty matrix for penalty LFD.
  Arguments:
  BASISOBJ ... a basis object of type 'bspline'
  LFDOBJ   ... A linear differential operator object.
          The highest derivative must be either 0 or 1.
  Returns the penalty matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 63
POLYGPEN computes the polygonal penalty matrix for penalty LFD.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
powerbasis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 524
POWERBASIS computes values of monomials, or their derivatives.
  The powers of EVALARG are the NBASIS nonnegative integers in EXPONENTS.
  The default is 1, meaning EVALARG itself.
  Arguments are as follows:
  EVALARG   ... A vector of values at which the polynomials are to
                evaluated.
  EXPONENTS ... vector of exponents
  NDERIV    ... order of derivative to be returned.
  Return is:
  A matrix with length(EVALARG) rows and NBASIS columns containing
    the values of the monomials or their derivatives



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 62
POWERBASIS computes values of monomials, or their derivatives.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
powerpen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 212
  POWERPEN  Computes the power basis penalty matrix.
  Arguments:
  BASISFD ... a power basis object
  LFDOBJ  ... either the order of derivative or a
               linear differential operator to be penalized.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 52
  POWERPEN  Computes the power basis penalty matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
ppBspline


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1059
PPBSPLINE computes the coefficients of the polynomials 
 of the piecewise polynomial B-spline of order k=length(t)-1
 corresponding to the knot sequence T 
 (i.e. B(k,T)(x) = (T(1+k)-T(1))[T(1),T(2),...,T(k+1)](.-x)_{+}^{k-1}),
 the coefficients of the polynomials each defines on 
 distinct intervals of T. 
 Say there are L distinct intervals in 
 T [T(knots[1]),T(knots[2])), [T(knots[2]),T(knots[3])),...,
 T(knots[L]),T(knots[L+1])], 
 then the coefficients are returned in the matrix COEFF as row vectors, 
 the i-th row corresponding to the coefficients of the polynomial on the
 interval [T(knots[i]),T(knots[i+1])), 
 such that 
 B(k,t)(x) = 
   COEFF(i,1)*(x-T(i))^{k-1} + ... + COEFF(i,k-1)*(x-T(i)) + 
   COEFF(i,k), for x in [T(knots[i]),T(knots[i+1])). 
 Note that we assume T(1) < T(k+1), i.e. T is not a
 sequence of the same knot. 
 The function returns the L times k matrix COEFF and the vector
 INDEX indicating where in the sequence T we find the knots. 
 This code uses part of the code from the function bspline.m .



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
PPBSPLINE computes the coefficients of the polynomials 
 of the piecewise po...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
project_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1149
 PROJECT_BASIS Project discrete values on to a set of basis fns.
  Arguments for this function:

  Y        ... an array containing values of curves
               If the array is a matrix, rows must correspond to argument
               values and columns to replications, and it will be assumed
               that there is only one variable per observation.
               If Y is a three-dimensional array, the first dimension
               corresponds to argument values, the second to replications,
               and the third to variables within replications.
               If Y is a vector, only one replicate and variable are assumed.
  ARGVALS  ... A vector of argument values.  This must be of length
               length(Y) if Y is a vector or size(Y)(1) otherwise.
  BASISOBJ  ... A basis.fd object
  PENALIZE  ... If nonzero, a penalty matrix is used to deal with
                  a singular basis matrix.  Normally this is not needed.

  Returns a coefficient vector or array. The first dimension is the number
     of basis functions and the other dimensions (if any) match
     the other dimensions of Y.




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 64
 PROJECT_BASIS Project discrete values on to a set of basis fns.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
quadset


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 950
  Set up quadrature points and weights for Simpson's rule
  and store information in BASISOBJ.  Simpson's rule is used to integrate
  a function between successive values in vector BREAKS.
  That is, over each interval [BREAKS(I),BREAKS(I+1)]. 
  Simpson's rule uses NQUAD equally spaced quadrature points over this 
  interval, starting with the the left boundary and ending with the right 
  boundary.  The quadrature weights are the values 
     DELTA.*[1,4,2,4,2,4,..., 2,4,1] where DELTA is the difference 
     between successive quadrature points, that is,
     DELTA = (BREAKS(I+1)-BREAKS(I))/(NQUAD-1).  
  For example, if NQUAD = 7, and BREAKS = [0, .3, 1], then
  over [0, 0.3] the quadrature points are the 7 values
      [0, 0.05, 0.01, 0.15, 0.20, 0.25, 0.3]
  and the quadrature weights are
      0.05.*[1, 4, 2, 4, 2, 4, 1]
  and defined similarly for the interval [0.3, 1], except that
  the spacing is now 0.7/6.  



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  Set up quadrature points and weights for Simpson's rule
  and store inform...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
rangechk


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 33
  check a range vector argument



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 33
  check a range vector argument




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
register_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1909
REGISTERFD registers a set of curves YFD to a target function Y0FD.

  Arguments are:
  Y0FD    ... Functional data object for target function.  It may be
              either a single curve, or have the same dimensions as YFD.
  YFD     ... Functional data object for functions to be registered
  WFD0PAR ... Functional parameter object for function W defining warping 
              functions.  The basis must be a B-spline basis.  If constant
              basis is desired, use create_bspline_basis(wrng, 1, 1).
              Its coefficients are the starting values used in the
                iterative computation of the final warping fns.
              NB:  The first coefficient is NOT used. This first 
                coefficient determines the constant term in the expansion,
                and, since a register function is normalized, this term
                is, in effect, eliminated or has no influence on the 
                result.  This first position is used, however, to 
                contain the shift parameter in case the data are 
                treated as periodic.  At the end of the calculations,
                the shift parameter is returned separately.
              WFD0PAR is a required argument.
  PERIODIC... If one, curves are periodic and a shift parameter is fit.
              Initial value for shift parameter is taken to be 0.  
              The periodic option should ONLY be used with a Fourier 
              basis for the target function Y0FD, the functions to be
              registered, YFD.
  CRIT    ... if 1 least squares, 
              if 2 log eigenvalue ratio, 
              if 3 least squares using residual y0 - yi*dhdt
              Default is 2.
  CONV    ... convergence criterion.  Default is 1e-4.
  ITERLIM ... iteration limit for scoring iterations
  DBGLEV  ... level of output of computation history



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 67
REGISTERFD registers a set of curves YFD to a target function Y0FD.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 14
register_fd_QN


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1863
REGISTERFD registers a set of curves YFD to a target function Y0FD.
  This version uses quasi-Newton optimization.

  Arguments are:
  Y0FD    ... Functional data object for target function.  It may be
              either a single curve, or have the same dimensions as YFD.
  YFD     ... Functional data object for functions to be registered
  WFD0PAR ... Functional parameter object for function W defining warping 
              functions.  The basis must be a B-spline basis.  If constant
              basis is desired, use create_bspline_basis(wrng, 1, 1).
              Its coefficients are the starting values used in the
                iterative computation of the final warping fns.
              NB:  The first coefficient is NOT used. This first 
                coefficient determines the constant term in the expansion,
                and, since a register function is normalized, this term
                is, in effect, eliminated or has no influence on the 
                result.  This first position is used, however, to 
                contain the shift parameter in case the data are 
                treated as periodic.  At the end of the calculations,
                the shift parameter is returned separately.
              WFD0PAR is a required argument.
  PERIODIC... If one, curves are periodic and a shift parameter is fit.
              Initial value for shift parameter is taken to be 0.  
              The periodic option should ONLY be used with a Fourier 
              basis for the target function Y0FD, the functions to be
              registered, YFD.
  CRIT    ... if 1 least squares, if 2 log eigenvalue ratio. Default is 2.
  CONV    ... convergence criterion.  Default is 1e-4.
  ITERLIM ... iteration limit for scoring iterations
  DBGLEV  ... level of output of computation history



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 67
REGISTERFD registers a set of curves YFD to a target function Y0FD.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
reschk


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 194
 RESCHK brings residuals outside of limits to limits
  First center the residuals.  See discussion of zmat
  about the conditions that zmat must satisfy to make this
  operation legitimate.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 RESCHK brings residuals outside of limits to limits
  First center the resi...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
safeinterp


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 212
 SAVEINTERP uses INTERP1  for 1-D interpolation, but
  protects it against values in xi being too close together.
 See help file for INTERP1 for further details.
 TOL is a nonnegative tolerance for closeness



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 SAVEINTERP uses INTERP1  for 1-D interpolation, but
  protects it against v...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
section_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 352
  SECTION_FD sets up a functional data object defined over a subsection
  of the original interval.

  Arguments:
  FDOBJ    ... Functional data object to be sectioned.
  SECRNG   ... Subsection range
  FDPAROBJ ... fdPar object defining the re-smoothing process.

  Returns:
  FDSECOBJ ... Functional data object defined over the subsection



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  SECTION_FD sets up a functional data object defined over a subsection
  of...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
sfdint


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 531
  Approximate the integral of a spatial functional data object over a 
  triangular region

  Arguments:
  SPACE_BASIS ...  A spatial basis object of the FEM class
  V           ...  A 3 by 2 matrix of x-y coordinates of vertices
  INTEGORDER  ...  The order of approximation:  the approximation is exact
                   for spatial polynomials of that order
  NDERIVS     ...  A vector of length 2 containing the orders of derivatives
                   for X and Y, respectively

  Last modified 27 September 2011



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  Approximate the integral of a spatial functional data object over a 
  tri...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
shifty


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 192
SHIFTY estimates value of Y for periodic data for
       X shifted by amount SHIFT.
  It is assumed that X spans interval over which function is periodic.
  Last modified 30 December 2000



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
SHIFTY estimates value of Y for periodic data for
       X shifted by amount...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 4
sine


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 224
  SINE  Computes the NDERIV derivative of the sine series basis
    for NBASIS functions with period PERIOD, these being evaluated
    at values in vector EVALARG.
  Returns an N by NBASIS matrix BASISMAT of function values



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  SINE  Computes the NDERIV derivative of the sine series basis
    for NBASI...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
sinepen


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 214
  SINEPEN computes the fourier penalty matrix for penalty LFD.
  Arguments:
  BASISOBJ ... a basis object
  LFDOBJ   ... a linear differential operator object
  Returns: 
  PENALTYMAT ... the penalty matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 62
  SINEPEN computes the fourier penalty matrix for penalty LFD.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
slides


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 160
  SLIDE evaluates a slide basis
  Slide defines a series of exponential decays with rates defined by
  values in argument X over intervals defined by BREAKS



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  SLIDE evaluates a slide basis
  Slide defines a series of exponential deca...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 16
smooth_FEM_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1406
 SMOOTH_FEM_Basis Smooths spatial data observed at a set of points, 
  possibly using covariate values as additional contributors to the fit to 
  the data values.  The basis object is of type FEM defined by a 
  triangular mesh within one or more bounding polygons.  The basis 
  functions are either piecewise linear or piecewise quadratic functions.
  The piecewise linear functions are nonzero only over the hexagon 
  surrounding a VERTEX and with value one at the VERTEX.  The piecewise
  quadratic functions include these three functions, and in addition
  including the additional three functions that reach one at the midpoints
  of the edges of triangles.  The points at which basis functions reach 
  are called NODES of the mesh. Thus, vertices and nodes correspond for
  piecewise linear basis functions, but the nodes also include midpoints
  in the case of piecewise quadratidc basis functions.  Note that all
  basis functions are continuous across edges and vertices of triangles,
  but only differentiable within a triangle.  In the piecewise quadratic
  case, basis functions also so have nonzero second partial derivatives
  within triangles, but not along edges or at vertices.

  The roughness penalty on the fitting function u(x,y) uses the Laplacian 
  operator 
             di^2 u/di x^2 + di^2 u/ di y^2
  which measures the local curvature at point (x,y).



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 SMOOTH_FEM_Basis Smooths spatial data observed at a set of points, 
  possi...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
smooth_FEM_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 865
 SMOOTH_FEM_FD Smooth data observed at a subset of nodes, possibly
  using covariate values in DESMAT as additional contributors to
  the fit to the data values.

     Arguments:
 FOBJ   ... a functional data object having a basis of the FEM type.
 DATA   ... a n-by-2 new set of observations.  DATA(:,1)
            indexes the points (FELSPLOBJ.POINTS) at which the 
            values in DATA(:,2) are observed.  If DATA is n by 1,
            the data are assumed to be associated with the first n
            nodes.
 LAMBDA ... a scalar smoothing parameter, MUST be positive
 DESMAT ... a design matrix

     Output:
 SMOOTH_FD  ...  A FD object of the FEM type defined by the coefficient
                 vector resulting from smoothing
 LAPLACE_FD ...  A FD object of the FEM type for the value of the 
                 Laplace operator




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 SMOOTH_FEM_FD Smooth data observed at a subset of nodes, possibly
  using c...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
smooth_GLM


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 129
undocumented function: [fdobj, beta, df, gcv, SSE, dev, penmat, y2cMap, argvals, y] = smooth_GLM (argvals, y, fdParobj, varargin)


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
undocumented function: [fdobj, beta, df, gcv, SSE, dev, penmat, y2cMap, argva...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
smooth_TP_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1535
SMOOTH_TP_BASIS  Smooths discrete surface values over a rectangular 
  lattice to estimate a smoothing function f(s,t) 
   using penalized basis functions.
  Arguments for this function:

  sarg     ... A set of argument values for the row dimension s. 
  targ     ... A set of argument values for the col dimension t. 
  Y        ... an array containing surface values
  FDPARS   ... A functional parameter or fdPar object for 
               variation along the row dimension s.
  FDPART   ... A functional parameter or fdPar object for 
               variation along the col dimension t.
  FDNAMES  ... A cell of length 3 with names for
               1. argument s
               2. argument t
               3. the function f(s,t).
  Returns:
    FDOBJ  ...  an object of class fd containing coefficients.
    DF     ...  a degrees of freedom measure.
    GCV    ...  a measure of lack of fit discounted for df.
                If the function is univariate, GCV is a vector 
                containing the error  sum of squares for each 
                function, and if the function is multivariate, 
                GCV is a NVAR by NCURVES matrix.
    COEF   ...  the coefficient matrix for the basis function
                  expansion of the smoothing function
    SSE    ...  the error sums of squares.  
                SSE is a vector or matrix of the same size as 
                GCV.
    PENMAT ...  the penalty matrix.
    Y2CMAP ...  the matrix mapping the data to the coefficients.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
SMOOTH_TP_BASIS  Smooths discrete surface values over a rectangular 
  latti...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
smooth_basis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5983
SMOOTH_BASIS  Smooths data by penalized least squares.  The smooth 
  curves are expressed as a basis function expansions, and this function 
  computes the coefficients of the expansions.  Smoothness is controlled
  by controlling the size of an integrated squared linear differential
  operator.  The integral is multiplied by a smoothing or bandwidth
  parameter.

  In addition, an optional covariate or design matrix can be supplied,
  having a row corresponding to each value in ARGVALS and Q columns,
  Q being the number of covariates.  See the optional COVARIATES
  parameter described below.

  This version of function smooth_basis sets up the smoothing problem
  as a least squares fitting problem, with the penalty term set up as
  the smooth of a basis system toward 0.

  Required arguments for this function are:

  ARGVALS  ... A set of n argument values, set by default to be 
               equally spaced on the unit interval (0,1).
  Y        ... an array containing values of curves
               If the array is a matrix, rows must correspond to argument
               values and columns to replications, and it will be assumed
               that there is only one variable per observation.
               If Y is a three-dimensional array, the first dimension
               corresponds to argument values, the second to replications,
               and the third to variables within replications.
               If Y is a vector, only one replicate and variable are 
               assumed.
  FDPAROBJ ... A functional parameter or fdPar object.  This object 
               contains the specifications for the functional data
               object to be estimated by smoothing the data.  See
               comment lines in function fdPar for details.
               This argument may also be either a FD object, or a 
               BASIS object.  If this argument is a basis object, the 
               smoothing parameter LAMBDA is set to 0.

   A function call of the form
             smooth_basis_LS(argvals, y, fdParobj,
                             'PARAM1',val1,'PARAM2',val2,...)
   can be used to input a number of optional parameters.  The first
   of each pair of arguments is the name of the parameter, supplied
   as a string in quotes, and the second is the value of the argument,
   supplied as an object of the class required by the parameter.
  
   These optional parameters are:

     weight          vector of length n, containing nonnegative weights  
                     to be applied to the data values, or
                     a symmetric positive definite matrix of order n
                     also w, wt, wgt, weights
                     See note below about a change in the roughness 
                     penalty related to using weights
     fdnames         A cell array of length 3 with names for
                       1. argument domain, such as 'Time'
                       2. replications or cases
                       3. the function.
                     also f, fdname
     covariates      A N by Q matrix Z of covariate values used to augment
                     the smoothing function, where N is the number of
                     data values to be smoothed and Q is the number of
                     covariates.  The process of augmenting a smoothing 
                     function in this way is often called "semi-parametric 
                     regression".  The default is the empty object [].
                     also c, cov, covariate
     method          The method for computing coefficients.  The usual
                     method computes cross-product matrices of the basis
                     value matrix, adds the roughness penalty, and uses
                     the Choleski decomposition of this to compute
                     coefficients, analogous to using the normal equations
                     in least squares fitting.  But this approach, while
                     fast, contributes unnecessary rounding error, and the
                     qr decomposition of the augmented basis matrix is
                     prefererable.   But nothing comes for free, and the
                     computational overhead of the qr approach can be a
                     serious problem for large problems (n of 1000 or
                     more).  For this reason, the default is 'method' ==
                     'chol', but if 'method' == 'qr', the qr decomposition
                     is used.
     dfscale         A scalar value multiplying the degrees of freedom
                     in the definition of the generalized 
                     cross-validated or GCV criterion for selecting the
                     bandwidth parameter LAMBDA.  It was recommended by
                     Chong Gu that this be a number slightly larger than
                     1.0, such as 1.2, to prevent under-smoothing,
                     The default is 1.0.
                     also d, df

  Returned objects are:

  FDOBJ   ... an object of class fd containing coefficients.
  DF      ... a degrees of freedom measure.
  GCV     ... a measure of lack of fit discounted for df.
                 If the function is univariate, GCV is a vector 
                 containing the error  sum of squares for each 
                 function, and if the function is multivariate, 
                 GCV is a NVAR by NCURVES matrix.
  BETA    ... the regression coefficients for the covariates if supplied
              or empty otherwise
  SSE     ... the error sums of squares.  
                 SSE is a vector or matrix of the same size as 
                 GCV.
  PENMAT  ... the penalty matrix, if computed, otherwise [].
  Y2CMAP  ... the matrix mapping the data to the coefficients.
  ARGVALS ... the input set of argument values.
  Y       ... the input array containing values of curves



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 54
SMOOTH_BASIS  Smooths data by penalized least squares.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 14
smooth_bibasis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1534
SMOOTH_BIBASIS  Smooths discrete surface values over a rectangular 
  lattice to estimate a smoothing function f(s,t) 
   using penalized basis functions.
  Arguments for this function:

  sarg     ... A set of argument values for the row dimension s. 
  targ     ... A set of argument values for the col dimension t. 
  Y        ... an array containing surface values
  FDPARS   ... A functional parameter or fdPar object for 
               variation along the row dimension s.
  FDPART   ... A functional parameter or fdPar object for 
               variation along the col dimension t.
  FDNAMES  ... A cell of length 3 with names for
               1. argument s
               2. argument t
               3. the function f(s,t).
  Returns:
    FDOBJ  ...  an object of class fd containing coefficients.
    DF     ...  a degrees of freedom measure.
    GCV    ...  a measure of lack of fit discounted for df.
                If the function is univariate, GCV is a vector 
                containing the error  sum of squares for each 
                function, and if the function is multivariate, 
                GCV is a NVAR by NCURVES matrix.
    COEF   ...  the coefficient matrix for the basis function
                  expansion of the smoothing function
    SSE    ...  the error sums of squares.  
                SSE is a vector or matrix of the same size as 
                GCV.
    PENMAT ...  the penalty matrix.
    Y2CMAP ...  the matrix mapping the data to the coefficients.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
SMOOTH_BIBASIS  Smooths discrete surface values over a rectangular 
  lattic...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
smooth_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 427
SMOOTH_FD smooths a functional data object.

  Arguments for this function:

  FDOBJ    ... A functional data object.
  FDPAROBJ ... A functional parameter object.

  If rebase=1 and the basis type is 'polyg' then the basis
    is changed to a cubic bspline  basis and before smoothing

  Returns a functional data object containing a smoothed version
    of the input functional data object

  Last modified:  2 December 2006



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 43
SMOOTH_FD smooths a functional data object.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 15
smooth_monotone


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5308
SMOOTH_MONOTONE smooths the relationship of Y to ARGVALS by fitting 
     a monotone function of the form
                   f(x) = b_0 + b_1 D^{-1} exp W(x)
     where  W  is a function defined over the same range as ARGVALS, and
             W + ln b_1 = log Df and w = D W = D^2f/Df.
  The constant term b_0 in turn can be a linear combination of covariates:
                       b_0 = zmat * c,
  in which case coefficient vector C is returned in its place.
  By default (ZMAT = []), it is just a constant.
  The fitting criterion is penalized mean squared error:
    PENSSE(lambda) = \sum w_i[y_i - f(x_i)]^2 +
                     \lambda * \int [L W(x)]^2 dx
  The function W(x) is expanded by the basis in functional data object
    WFD.   The coefficients of this expansion are called "coefficients"
    in the comments, while the b's are called "regression coefficients"

  Arguments are ...
  ARGVALS ...  Argument value array of length N, where N is the number of 
               observed curve values for each curve.  It is assumed that
               that these argument values are common to all observed
               curves.  If this is not the case, you will need to 
               run this function inside one or more loops, smoothing
               each curve separately.
  Y       ...  Function value array (the values to be fit).
               If the functional data are univariate, this array will be 
               an N by NCURVE matrix, where N is the number of observed
               curve values for each curve and NCURVE is the number of
               curves observed.
               If the functional data are multivariate, this array will be 
               an N by NCURVE by NVAR matrix, where NVAR the number of
               functions observed per case.  For example, for the gait
               data, NVAR = 2, since we observe knee and hip angles.
  FDPAROBJ ... A functional parameter or fdPar object.  This object 
               contains the specifications for the functional data
               object to be estimated by smoothing the data.  See
               comment lines in function fdPar for details.
               The functional data object WFD in FDPAROBJ is used
               to initialize the optimization process.
               Its coefficient array contains the starting values for 
               the iterative minimization of mean squared error.
  ZMAT    ...  a matrix of covariate values for the constant term.
               It defaults to N one's if ZMAT is empty (ZMAT = []).
  WTVEC   ...  a vector of weights, a vector of N one's by default.
               WTVEC may also be an order N matrix (usually symmetric)
  CONV    ...  convergence criterion, 0.0001 by default
  ITERLIM ...  maximum number of iterations, 50 by default.
  ACTIVE  ...  indices among 1:NBASIS of parameters to optimize.
               Defaults to 1:NBASIS.
  DBGLEV  ...  Controls the level of output on each iteration.  If 0,
               no output, if 1, output at each iteration, if higher, 
               output at each line search iteration. 1 by default.

  Returns are:
  WFD     ...  Functional data object for W. 
               Its coefficient matrix an N by NCURVE (by NVAR) matrix
               (or array), depending on whether the functional
               observations are univariate or multivariate.
  BETA    ...  The regression coefficients b_0 and b_1 for each
               smoothed curve.  
               If the curves are univariate and 
                  ... ZMAT is empty, BETA is a 2 by NCURVE matrix.
                  ... ZMAT has P columns, BETA is a P+2 by NCURVE matrix.
               If the curves are multiivariate and 
                  ... ZMAT is empty, BETA is a 2 by NCURVE by NVAR array.
                  ... ZMAT has P columns, BETA is a P+2 by NCURVE by NVAR
                      array.    
  YHATFD  ...  A functional data object for the fitting function.
               This is constructed using the basis for WFD, and this
               basis may well be too simple to accommodate the curvature
               in the monotone function that WFD defines.  It may be 
               necessary to discard this object and use a richer basis
               externally to smooth the values defined by
                  beta(1) + beta(2).*eval_mon(evalarg, Wfd).
  FSTR    ...  A struct object or a cell array of struct objects, one for 
               each curve (and each variable if functions multivariate).
               Each struct object has slots:
                 f    ... The sum of squared errors   
                 grad ... The gradient  
                 norm ... The norm of the gradient  
  Y2CMAP   ... For each estimated curve (and variable if functions are
               multivariate, this is an N by NBASIS matrix containing
               a linear mappping from data to coefficients used
               for computing point-wise confidence intervals.  
               If NCURVE = NVAR = 1, a matrix is returned.  Otherwise
               an NCURVE by NVAR cell array is returned, with each 
               entry being this mapping.
  ARGVALS  ... Input argument values
  Y        ... Input data to be smoothed



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
SMOOTH_MONOTONE smooths the relationship of Y to ARGVALS by fitting 
     a ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
smooth_morph


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2271
SMOOTH_MORPH smooths the relationship of Y to ARGVALS 
  by fitting a monotone fn.  f(argvals) = b_0 + b_1 D^{-1} exp W(t)
     where  W  is a function defined over the same range as ARGVALS,
  W + ln b_1 = log Df and w = D W = D^2f/Df.
  b_0 and b_1 are chosen so that f(t_1) = y_1 and f(t_n) = y_n.
  The fitting criterion is penalized mean squared error:
    PENSSE(lambda) = \sum [y_i - f(t_i)]^2 +
                     \lambda * \int [L W]^2 
  W(argvals) is expanded by the basis in functional data object Wfdobj.

  Arguments are ...
  ARGVALS ...  argument value array
  Y       ...  function value array (the values to be fit)
  WFDPAR  ... A functional parameter or fdPar object.  This object 
               contains the specifications for the functional data
               object to be estimated by smoothing the data.  See
               comment lines in function fdPar for details.
               The functional data object WFD in FDPAROBJ is used
               to initialize the optimization process.
               It's coefficient array has a single column, and these 
               are the starting values for the iterative minimization 
               of mean squared error.
               This argument may also be either a FD object, or a 
               BASIS object.  In this case, the smoothing parameter 
               LAMBDA is set to 0.
  WT      ...  a vector of weights
  CONV    ...  convergence criterion, 0.0001 by default
  ITERLIM ...  maximum number of iterations, 20 by default
  DBGLEV  ...  Controls the level of output on each iteration.  If 0,
               no output, if 1, output at each iteration, if higher, output
               at each line search iteration. 1 by default.

  Returns are:
  WFD     ...  Functional data object for W.  It's coefficient vector
               contains the optimized coefficients.
  FSTR    ...  Structure containing final criterion value, gradient, and
               gradient norm.
  YSMTH   ...  The smoothed values corresponding to (argvals,y)
  ITERNUM ...  The total number of iterations taken.
  ITERHIST...  An array with number of rows equal to number of iterations,
               and columns corresponding to it. number, function value,
               and mean squared gradient.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
SMOOTH_MORPH smooths the relationship of Y to ARGVALS 
  by fitting a monoton...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
smooth_pos


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 3141
SMOOTH_POS smooths the relationship of Y to ARGVALS by fitting 
     a positive function of the form
                   f(t) = exp W(t)
     where  W  is a function defined over the same range as ARGVALS,
                     W  = log f.
  The fitting criterion is penalized mean squared error:
    PENSSE(lambda) = \sum w_i[y_i - f(t_i)]^2 +
                     \lambda * \int [L W]^2 
  The function W(t) is expanded by the basis in functional data object
    Wfd.   The coefficients of this expansion are called "coefficients"
    in the comments, while the b's are called "regression coefficients"

  Arguments are:
  ARGVALS ...  Argument value array of length N, where N is the number of 
               observed curve values for each curve.  It is assumed that
               that these argument values are common to all observed
               curves.  If this is not the case, you will need to 
               run this function inside one or more loops, smoothing
               each curve separately.
  Y       ...  Function value array (the values to be fit).
               If the functional data are univariate, this array will be 
               an N by NCURVE matrix, where N is the number of observed
               curve values for each curve and NCURVE is the number of
               curves observed.
               If the functional data are muliivariate, this array will be 
               an N by NCURVE by NVAR matrix, where NVAR the number of
               functions observed per case.  For example, for the gait
               data, NVAR = 2, since we observe knee and hip angles.
  FDPAROBJ ... A functional parameter or fdPar object.  This object 
               contains the specifications for the functional data
               object to be estimated by smoothing the data.  See
               comment lines in function fdPar for details.
               The functional data object WFD in FDPAROBJ is used
               to initialize the optimization process.
               It's coefficient array contains the starting values for 
               the iterative minimization of mean squared error.
  WTVEC   ...  a vector of weights, a vector of N one's by default.
  CONV    ... convergence criterion
  ITERLIM ...  maximum number of iterations, 50 by default.
  DBGLEV  ...  Controls the level of output on each iteration.  If 0,
               no output, if 1, output at each iteration, if higher, 
               output at each line search iteration. 1 by default.

  Returns:
  WFD     ...  Functional data object for W. 
               Its coefficient matrix an N by NCURVE (by NVAR) matrix
               (or array), depending on whether the functional
               observations are univariate or multivariate.
  FSTR ...  A struct object or a cell array of struct objects, one for 
            each curve (and each variable if functions are multivariate).
            Each struct object has slots:
                 f    ... The sum of squared errors   
                 grad ... The gradient  
                 norm ... The norm of the gradient  



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
SMOOTH_POS smooths the relationship of Y to ARGVALS by fitting 
     a posit...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
smooth_prob


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 130
SMOOTH_PROB smooths the relationship of binomial observations to ARGVALS. 
  The fitting criterion is penalized log likelihood.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 73
SMOOTH_PROB smooths the relationship of binomial observations to ARGVALS.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 14
smooth_simplex


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 922
SMOOTH_SIMPLEX smooths the relationship of observations 
  in a d-dimensional simplex distributed ARGVALS.   The data are in
  an N by NCURVES by D array, where N is the length of ARGVALS,
  NCURVES is the number of replications, and D is the dimension of the
  simplex.  For example, if observations are in an equilateral triangle,
  then D = 3.
  An error sum of squares criterion is minimized by the Gauss-Newton
  method used in Matlab function lsqnonlin.

  The fitting criterion is penalized least squares.

  Arguments are:
  ARGVALS ... A vector of argument values
  Y       ... An N by NCURVES by D array of data
  WFDPAR  ... functional parameter object defining initial smoothing
              functions.  This is a D-variate functional data object.
  ITERLIM ... iteration limit for scoring iterations
  CONV    ... convergence criterion
  DBGLEV  ... level of output of computation history



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
SMOOTH_SIMPLEX smooths the relationship of observations 
  in a d-dimensiona...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
sphere2cartes


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 319
  SPHERE2CARTES converts angles and radius as polar coordinates for 
  a point on the n-spnere in n + 1 dimensional space to 
  cartesian coordinates in COORD, and their derivative of the coordinates
  with respect to the angles in DCOORD.
  ANGLE is a vector of n  angles, and RADIUS is the radius of the sphere,



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  SPHERE2CARTES converts angles and radius as polar coordinates for 
  a poi...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
startingVals


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 63
 Find a starting value for the mean, avoiding boundary values



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 63
 Find a starting value for the mean, avoiding boundary values




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
statremovenan


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 45
STATREMOVENAN Remove NaN values from inputs



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 45
STATREMOVENAN Remove NaN values from inputs




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
stattestlink


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 55
STATTESTLINK Test link function for GLMFIT and GLMVAL



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 55
STATTESTLINK Test link function for GLMFIT and GLMVAL




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
std_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 204
  STD  Compute standard deviation functions for functional observations.
  Argument:
  FD    ... a functional data object
  Return:
  STDFD ... a functional data for the standard deviation functions



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 72
  STD  Compute standard deviation functions for functional observations.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
stepchk


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 232
STEPCHK checks the step along a line for producing parameters within the
  limits specified by BOT and TOP
  LIMWRD  ...  Logical variable permitting detection that parameter
               was on the boundary two steps = a row



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
STEPCHK checks the step along a line for producing parameters within the
  l...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
stepit


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 406
STEPIT computes next step size in line search algorithm
  Arguments:
  LINEMAT:  Row 1 contains step values
            Row 2 contains slope values
            Row 3 contains function values
  IPS:      If 1, previous slope was positive
  DBLWRD:   Vector of length 2:  dblwrd(1) T means step halved
                                 dblwrd(2) T means step doubled
  MAXSTEP:  maximum size of step



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
STEPIT computes next step size in line search algorithm
  Arguments:
  LINE...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
stiff


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1338
STIFF1 produces the nnod*nnod stiffness matrix K1
defined (K1)jk = int(dpsik/da*dpsij/da + dpsik/db*dpsij/db).

Input: NODESTRUCT is a struct object produced by function makenodes_new.
    It contains:
        ORDER     ... The order of the element (1 or 2)
        NODES     ... Coordinates of node points
        NODEINDEX ... indices of node points for each element
        JVEC      ... Jacobian of the affine transformation of each
                      element to the master element
        METRIC    ... The crossproduct of the inverse of the linear
                      part of the transformation

Output: K1 is an nnod*nnod matrix out which is
        the sum of the nele element stiffness matrices
        and the penalty stiffness matrix.
        These i'th element matrix has (ij)'th element defined
        as follows:  
        Let psita and psitb be the partial derivatives of the
        t'th shape function with respect to a and b (1<=t<=6).
        Then the integral of the sum of products
        (psija*psika+psijb+psikb) over the i'th element is
        computed.  Then that value is assigned to the
        (nodeindex(i,j),nodeindex(i,k))'th entry of the i'th elemental 
        stiffness matrix and the other elements are given the value zero.

 Last modified on August 23, 2010 by Jim.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
STIFF1 produces the nnod*nnod stiffness matrix K1
defined (K1)jk = int(dpsik...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
stiff0


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 869
STIFF0 produces the stiffness matrix for the equation which
ensures that del(u)=w in the mixed method solution to the 
biharmonic (or minimal curvature) problem, solved by quadratic triangles.

Input: FMESH is the triangularization matrix produced by
	calling fmesh=timtri(points).  Note that points is
	an nver*2 matrix of points (x,y).
       PSI is the matrix of shape function derivatives
       produced by the call qder.

Output: K0: the output is an nnod*nnod matrix out which is
        the sum of the nele element 0-stiffness matrices.
        For each element i and each 1<=j,k<=6, the integral of the product 
        of the j'th and k'th shape functions over the i'th element is
        computed.  Then that value is the (fmesh(i,j),fmesh(i,k))'th entry
        of the i'th elemental stiffness matrix.
 Last modified on September 11, 2000.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
STIFF0 produces the stiffness matrix for the equation which
ensures that del...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
stiff1


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1329
STIFF1 produces the nnod*nnod stiffness matrix K1
defined (K1)jk = int(dpsik/da*dpsij/da + dpsik/db*dpsij/db).

Input: NODESTRUCT is a struct object produced by function makenodes.
    It contains:
        ORDER     ... The order of the element (1 or 2)
        NODES     ... Coordinates of node points
        NODEINDEX ... indices of node points for each element
        JVEC      ... Jacobian of the affine transformation of each
                      element to the master element
        METRIC    ... The crossproduct of the inverse of the linear
                      part of the transformation

Output: K1 is an nnod*nnod matrix out which is
        the sum of the nele element stiffness matrices
        and the penalty stiffness matrix.
        These i'th element matrix has (ij)'th element defined
        as follows:  
        Let psita and psitb be the partial derivatives of the
        t'th shape function with respect to a and b (1<=t<=6).
        Then the integral of the sum of products
        (psija*psika+psijb+psikb) over the i'th element is
        computed.  Then that value is assigned to the
        (nodeindex(i,j),nodeindex(i,k))'th entry of the i'th elemental 
        stiffness matrix and the other elements are given the value zero.

 Last modified on 9 May 2011 by Jim.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
STIFF1 produces the nnod*nnod stiffness matrix K1
defined (K1)jk = int(dpsik...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
symsolve


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 98
SYMSOLVE solves ASYM Xmat = BMAT for Xmat where ASYM is symmetric
  Last modified 24 April 2003



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
SYMSOLVE solves ASYM Xmat = BMAT for Xmat where ASYM is symmetric
  Last mod...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
synch


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 144
  Synchronize or register the functions in fdPar object using
  the W functions in fdPar object WfdParobj over time values in
  vector time.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  Synchronize or register the functions in fdPar object using
  the W functi...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
tperm_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 480
  TPERM computes a permutation t-test of the difference between
  the functional means of two groups of data.

  Arguments:
  X1FD    ... First  sample of functional observations
  X2FD    ... Second sample of functional observations
  NPERM   ... Number of permutations ... default 200
  Q       ... Tail probability for test ... default 0.05
  ARGVALS ... Argument values at which to evaluate functions
  PLOTRES ... If nonzero, plot results ... default 0
  Results:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  TPERM computes a permutation t-test of the difference between
  the functi...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
tri2grid_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1103
TRI2GRID_FD Interpolate from triangular mesh to rectangular grid.

       UXY = TRI2GRID(P,T,U,X,Y) computes the function values UXY
       over the grid defined by the vectors X and Y, from the
       function U with values on the triangular mesh defined by P and T.
       Values are computed using linear interpolation in
       the triangle containing the grid point. Vectors X and Y
       must be increasing.

       [UXY,TN,A2,A3] = TRI2GRID(P,T,U,X,Y) lists
       the index TN of the triangle containing each grid point,
       and interpolation coefficients A2 and A3.

       UXY = TRI2GRID(P,T,U,TN,A2,A3), with TN, A2, and A3 computed
       in an earlier call to TRI2GRID, interpolates using
       the same grid as in the earlier call. This variant is,
       however, much faster if several functions have to be
       interpolated using the same grid.

       For grid points outside of the triangular mesh, NaN is
       returned in UXY, TN, A2, and A3.


  This version is an adaption of function tri2grid in the pde toolbox
  in Matlab by Jim Ramsay.  

  Last modified 8 March 2011



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 65
TRI2GRID_FD Interpolate from triangular mesh to rectangular grid.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
tricoefCal


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 106
  TRICOEFCAL compute the coefficient matrix TRICOEF
  required to test of a point is indside a triangle



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  TRICOEFCAL compute the coefficient matrix TRICOEF
  required to test of a ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
var_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1299
  VAR  Compute variance and covariance functions .
  VAR  is normally called with one argument.  In this case,
     if there are multiple functions, there is a variance-covariate
     bivariate function computed for each pair of functions.
     If VAR is called with two arguments, both must be univariate
     functions, and in this case only the cross-covariance bivariate
     function is computed.
  Arguments:
  XFD ... a functional data object
  YFD ... an optional second functional data object
             It is assumed that each object has the same number of
             replications.
  Return:
  VARBIFD  ...  a bivariate functional data object.
     If VAR is called with only one argument:
           If the functions are univariate, then there is
             a single bivariate variance-covariance function.
           If the functions are multivariate, there is a
             variance-covariance function for each
             pair of functions.
     If VAR is called with two arguments:
           Both functions must be univariate, and in this case a
           single cross-covariance function is computed.
     In either case, the bivariate variance-covariance function(s)
           have a single replication, so that the third index of
           the coefficient array is 1.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 50
  VAR  Compute variance and covariance functions .



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
varmx


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 359
  VARMX  Does a VARIMAX rotation of a principal components solution
  Arguments:
  AMAT      ...  N by K matrix of component loadings
  NORMALIZE ...  If nonzero, the columns of AMAT are normalized
                 before computing the rotation matrix.  
                 The default is 0.
  Returns:
  ROTM  ...  Rotation matrix for rotated loadings



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  VARMX  Does a VARIMAX rotation of a principal components solution
  Argume...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
varmx_cca


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 540
  VARMX_CCA  Apply varimax rotation to CCA weight functions
             and scores
  Arguments:
  CCAWTFD1 ... A functional parameter object for the canonical weight
                functions for the first  set of functions.
  CCAWTFD2 ... A functional parameter object for the canonical weight
                functions for the second set of functions.
  CCAVAR1  ... Canonical variate scores for first  set of functions.
  CCAVAR2  ... Canonical variate scores for second set of functions.
  Return:  Arguments after rotation.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  VARMX_CCA  Apply varimax rotation to CCA weight functions
             and...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
varmx_pca


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 357
  VARMX_PCA  Apply varimax rotation to harmonics in a pca.fd object.
  Arguments:
  PCASTR ... Struct object returned by PCA_FD.
  NHARM  ... Number of harmonics to rotate.
  NX     ... Number of equally spaced points at which harmonics are
             evaluated.  Default 501.
  Return:
  PCAROTSTR ... PCASTR object containing rotated harmonics.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 68
  VARMX_PCA  Apply varimax rotation to harmonics in a pca.fd object.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
varmx_pca_fd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 360
  VARMX_PCA_FD  Apply varimax rotation to harmonics in a pca.fd object.
  Arguments:
  PCASTR ... Struct object returned by PCA_FD.
  NHARM  ... Number of harmonics to rotate.
  NX     ... Number of equally spaced points at which harmonics are
             evaluated.  Default 501.
  Return:
  PCAROTSTR ... PCASTR object containing rotated harmonics.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 71
  VARMX_PCA_FD  Apply varimax rotation to harmonics in a pca.fd object.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
vec2Lfd


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 279
VEC2LFD converts a vector of length m to a linear differential
  operator object of order m.  The range of the
  functional data object in any cell is set to RANGEVAL.  
  In the event that BWTVEC is already a linear differential operator
  object, it returns the object.  



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
VEC2LFD converts a vector of length m to a linear differential
  operator ob...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
warpsmth


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2398
WARPSMTH smooths the relationship of Y to X 
  by fitting a monotone fn.  f(x) = b_0 + b_1 D^{-1} exp W(x)
     where  W  is a function defined over the same range as X,
  W + ln b_1 = log Df and w = D W = D^2f/Df.
  b_0 and b_1 are chosen so that f(x_1) = y_1 and f(x_n) = y_n.
  The fitting criterion is penalized mean squared error:
    PENSSE(lambda) = \sum [y_i - f(x_i)]^2 +
                     \lambda * \int [L W(x)]^2 dx
  W(x) is expanded by the basis in functional data object Wfd.

  Arguments are ...
  X       ...  A vector of argument values.
  Y       ...  A vector of function value.
  WT      ...  a vector of weights.
  WFD     ...  functional data object for W.  It's coefficient array
               has a single column, and these are the starting values
               for the iterative minimization of mean squared error.
  LFDOBJ  ...  linear differential opr defining roughness penalty to
               be applied to W.  This may be either a functional data
               object defining a linear differential operator, or a 
               nonnegative integer.  If the latter, it specifies the
               order of derivative to be penalized.
               Lfdobj = 1 by default, corresponding to L = D.
  LAMBDA  ...  smoothing parameter determining the amount of penalty, 
               0 by default.
  CONV    ...  convergence criterion, 0.0001 by default
  ITERLIM ...  maximum number of iterations, 20 by default
  ACTIVE  ...  vector of 1's and 0's indicating which coefficients
               are to be optimized (1) or remain fixed (0).  All values
               are 1 by default, except that if a B-spline basis is used,
               the first value is set to 0.
  DBGLEV  ...  Controls the level of output on each iteration.  If 0,
               no output, if 1, output at each iteration, if higher, output
               at each line search iteration. 1 by default.

  Returns are:
  WFD     ...  Functional data object for W.  It's coefficient vector
               contains the optimized coefficients.
  FSTR    ...  Structure containing final criterion value, gradient, and
               gradient norm.
  ITERNUM ...  The total number of iterations taken.
  ITERHIST...  An array with number of rows equal to number of iterations,
               and columns corresponding to it. number, function value,
               and mean squared gradient.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
WARPSMTH smooths the relationship of Y to X 
  by fitting a monotone fn.  f(x...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 4
wfit


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 39
 Perform a weighted least squares fit



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 39
 Perform a weighted least squares fit




# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
wtcheck


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 459
WTCHECK checks an input weight vector or weight matrix.  
  If the weight vector is not empty, it checked for dimension, length and 
  positivity.  In this case output ONEWT has value 0.
  If the weight vector is empty, it is set up as a vector of ones of
  the appropriate length.  In this case output ONEWT has value 1.
  If weight is a matrix, it is checked for dimensions and being
  positive definite, and matwt is set to 1, otherwise matwt is 0.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 55
WTCHECK checks an input weight vector or weight matrix.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
ycheck


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 215
  Check data array Y
  Arguments:
  Y ... a data array that is either two or three dimensional
  N ... the number of argument values, which is also supposed
        to be the length of the first dimension of Y



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  Check data array Y
  Arguments:
  Y ... a data array that is either two o...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
zerobasis


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 140
  sets up a k by k-1 matrix with orthonormal columns
  using the first k non-constant fourier basis function
  values at 0.5, ..., k-0.5



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
  sets up a k by k-1 matrix with orthonormal columns
  using the first k non...





