Contenido principal

cfit

Constructor del objeto cfit

Descripción

cfun = cfit(ffun, coeff1,...,coeffn) construye el objeto cfit cfun usando el tipo de modelo especificado por el objeto fittype ffun y los valores de coeficientes coeff1, coeff2, etc.

Nota

La función fit llama a cfit cuando ajusta los objetos fittype a los datos. Para crear un objeto cfit que sea el resultado de una regresión, use fit.

Solo debería llamar directamente a cfit si desea asignar valores a los coeficientes y parámetros de problemas de un objeto fittype sin realizar un ajuste.

Methods of cfit objects:

argnames Input argument names of cfit, sfit, or fittype object
categoryCategory of fit of cfit, sfit, or fittype object
cfitConstructor for cfit object
coeffnamesCoefficient names of cfit, sfit, or fittype object
coeffvaluesCoefficient values of cfit or sfit object
confintConfidence intervals for fit coefficients of cfit or sfit object
dependnamesDependent variable of cfit, sfit, or fittype object
differentiateDifferentiate cfit or sfit object
formulaFormula of cfit, sfit, or fittype object
indepnamesIndependent variable of cfit, sfit, or fittype object
integrateIntegrate cfit object
islinearDetermine if cfit, sfit, or fittype object is linear
numargsNumber of input arguments of cfit, sfit, or fittype object
numcoeffsNumber of coefficients of cfit, sfit, or fittype object
probnamesProblem-dependent parameter names of cfit, sfit, or fittype object
probvaluesProblem-dependent parameter values of cfit or sfit object
setoptions Set model fit options
typeName of cfit, sfit, or fittype object

ejemplo

Ejemplos

contraer todo

Cree un objeto fittype y llame a la función cfit.

f = fittype('a*x^2+b*exp(n*x)')
c = cfit(f,1,10.3,-1e2)
f =
     General model:
       f(a,b,n,x) = a*x^2+b*exp(n*x)
c =
     General model:
       c(x) = a*x^2+b*exp(n*x)
     Coefficients:
       a =           1
       b =        10.3
       n =        -100

Argumentos de entrada

contraer todo

Tipo de modelo que la función cfit usa para construir el objeto cfit, especificado como un fittype construido con la función fittype.

Ejemplo: fittype('poly2')

Valores de coeficientes del objeto cfit, especificados como escalares.

Tipos de datos: single | double

Argumentos de salida

contraer todo

Salida de la función, devuelta como un objeto cfit.

Historial de versiones

Introducido antes de R2006a