Cauchy, CauchyD, CauchyDD2

Computes Cauchy robust error function and its first and second derivatives

Syntax

IppStatus ippsCauchy_32f_I(Ipp32f* pSrcDst, int len, Ipp32f param);

IppStatus ippsCauchyD_32f_I(Ipp32f* pSrcDst, int len, Ipp32f param);

IppStatus ippsCauchyDD2_32f_I(Ipp32f* pSrcDst, Ipp32f* pD2FVal, int len, Ipp32f param);

Parameters

pSrcDst

Pointer to the source and destination vector.

len

Number of elements in the vector

pD2FVal

Pointer to the array of the values of the second derivatives.

param

Parameter C of the Cuachy function.

Description

These functions are declared in the ipps.h file. For len elements of the source vector pSrcDst the function perform the following operations:

the function ippsCauchy calculates the Cauchy function and stores the results in the vector pSrcDst;

the function ippsCauchyD calculates first derivatives of the Cauchy function and stores the results in the vector pSrcDst;

the function ippsCauchyDD2 calculates first and second derivatives of the Cauchy function and stores the values of first derivatives in the vector pSrcDst, values of second derivatives - in the array pD2FVal.

The following pseudo-codes show how these operations are performed.

Calculating the Cauchy function (ippsCauchy):

for( int i = 0; i < len; i++ ) pSrcDst[i] = φC(pSrcDst[i]);

Calculating first derivatives of the Cauchy function (ippsCauchyD):

for( int i = 0; i < len; i++ ) pSrcDst[i] =ψC(pSrcDst[i]);

Calculating first and second derivatives of the Cauchy function (ippsCauchyDD2):

for( int i = 0; i < len; i++ ){
pD2FVal[i] = ψ'C(pSrcDst[i]);
pSrcDst[i] = ψC(pSrcDst[i]);
}

Here

Return Values

ippStsNoErr

Indicates no error.

ippStsNullPtrErr

Indicates an error when one of the specified pointers is NULL.

ippStsSizeErr

Indicates an error when len is less than 0.

Submit feedback on this help topic

Copyright © 2000 - 2011, Intel Corporation. All rights reserved.