Main Content

sfit

sfit 객체에 대한 생성자

설명

예제

surfacefit = sfit(fittype,coeff1,...,coeffn)fittype 객체와 계수 값 coeff1, coeff2 등으로 지정된 모델 유형을 사용하여 sfit 객체 surfacefit을 생성합니다.

sfit 객체는 곡면을 데이터에 피팅한 결과를 캡슐화합니다. 이 객체는 일반적으로 fit 함수를 호출하여 생성되거나 대화형 방식으로 곡선 피팅기 앱에서 작업 공간으로 피팅을 내보내어 생성됩니다. sfit 객체의 계수 속성을 가져오고 설정할 수 있습니다.

sfit 객체를 함수로 취급하여 예측을 수행하거나 X와 Y의 값에서 곡면의 값을 구할 수 있습니다.

sfitcfit 클래스와 마찬가지로 모든 fittype 메서드를 상속합니다.

참고

sfit은 데이터에 fittype 객체를 피팅할 때 fit 함수에 의해 호출됩니다. 회귀의 결과인 sfit 객체를 만들려면 fit을 사용하십시오.

피팅을 수행하지 않고 fittype 객체의 계수와 문제 파라미터에 값을 할당하려는 경우에만 sfit을 직접 호출해야 합니다.

Methods of sfit objects:

argnames Input argument names of cfit, sfit, or fittype object
categoryCategory of fit of cfit, sfit, or fittype object
coeffnamesCoefficient names of cfit, sfit, or fittype object
dependnamesDependent variable of cfit, sfit, or fittype object
formulaFormula of cfit, sfit, or fittype object
indepnamesIndependent variable of cfit, sfit, or fittype 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
quad2dNumerically integrate sfit object
setoptions Set model fit options
sfitConstructor for sfit object
typeName of cfit, sfit, or fittype object

예제

모두 축소

sfit 객체를 함수로 취급하여 예측을 수행하거나 X와 Y의 값에서 곡면의 값을 구할 수 있습니다.

        x = 3 - 6 * rand( 49, 1 );
        y = 3 - 6 * rand( 49, 1 );
        z = peaks( x, y );
        sf = fit( [x, y], z, 'poly32' );
        zhat = sf( mean( x ), mean( y ) )

입력 인수

모두 축소

sfit 함수가 sfit 객체를 생성할 때 사용하는 모델 유형으로, fittype 함수로 생성된 fittype으로 지정됩니다.

예: fittype('linearinterp')

sfit 객체의 계수 값으로, 스칼라로 지정됩니다.

데이터형: single | double

출력 인수

모두 축소

함수 출력값으로, sfit 객체로 반환됩니다.

버전 내역

R2009a에 개발됨