IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 26, 2004, 3:15:47 PM (22 years ago)
Author:
gusciora
Message:

...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMinimize.h

    r2204 r2206  
    88 *  @author GLG, MHPCC
    99 *
    10  *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    11  *  @date $Date: 2004-10-27 00:57:31 $
     10 *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
     11 *  @date $Date: 2004-10-27 01:15:47 $
    1212 *
    1313 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    8888                                  const psArray *x);
    8989
     90/*
     91psVector *psMinimizeLMChi2Gauss1D(psImage *deriv,
     92                                  const psVector *params,
     93                                  const psArray *coords)
     94{
     95    psVector *x = (psVector *) coords->data[0];
     96    psVector *y = (psVector *) coords->data[1];
     97    psVector *yErr = NULL;
     98    int i;
     99    int j;
     100    float normalization = params->data.F32[0];
     101    float center = params->data.F32[1];
     102    float stdev = params->data.F32[2];
     103    psVector *out = psVectorAlloc(x->n, PS_TYPE_F32);
     104 
     105 
     106    if (deriv == NULL) {
     107        deriv = psImageAlloc(params->n, x->n, PS_TYPE_F32);
     108    }
     109 
     110    if (coords->n == 2) {
     111        yErr = (psVector *) coords->data[2];
     112    }
     113 
     114    for (i=0;i<x->n;i++) {
     115        out->data.F32[i] = psGaussian(x->data.F32[i], center, stdev, 1);
     116    }
     117 
     118    for (i=0;i<x->n;i++) {
     119        for (j=0;j<params->n;j++) {
     120            deriv->data.F32[i][j] = the derivative of the gaussian w.r.t. the j-th parameter at the coord x[i]
     121        }
     122    }
     123    return(out);
     124}
     125*/
     126
    90127psBool psMinimizeLMChi2(psMinimization *min,
    91128                        psImage *covar,
Note: See TracChangeset for help on using the changeset viewer.