Hi,

I was looking for some samples on how to use ulogifit for 4 parameters logistic curve fit,

Could someone share some tips or guide please? Below are my code snippet, not sure if the TVector B parameter result output is correct or not ?

var

X:array [0..9] of Float=(0,1,2,3,4,5,6,7,8,9,10);

Y:array [0..9] of Float=(10,11,25,36,82,90,106,201,301,403);

TX,TY:TVector;

vecB: array of Float;

B: TVector;

MatV: TMatrix;

beta,alpha:Float;

A1,B1,N:Float;

begin

TX:=X;

TY:=Y;

DimVector(TX,10);

DimVector(TY,10);

SetLength(vecB,5);

B := vecB;

DimMatrix(MatV, 0, 4);

LogiFit(TX, TY, 1, 9,true,true, 1000, 0.001, B, MatV);

A1:=B[0];

B1:=B[1];

alpha:=B[2];

beta:=B[3];

N:=B[4];