MyWebUniversity.com Home Page
 



OpenSolaris man pages main menu


mediaLib Library Functions      mlibVectorDistanceU8Sat(3MLIB)



NAME
     mlibVectorDistanceU8Sat,      mlibVectorDistanceS8Sat,
     mlibVectorDistanceS16Sat,  mlibVectorDistanceS32Sat  -
     vector Euclidean distance

SYNOPSIS
     cc [ flag... ] file... -lmlib [ library... ]
     #include 

     mlibstatus mlibVectorDistanceU8Sat(mlibd64 *z, const mlibu8 *x,
          const mlibu8 *y, mlibs32 n);


     mlibstatus mlibVectorDistanceS8Sat(mlibd64 *z, const mlibs8 *x,
          const mlibs8 *y, mlibs32 n);


     mlibstatus mlibVectorDistanceS16Sat(mlibd64 *z, const mlibs16 *x,
          const mlibs16 *y, mlibs32 n);


     mlibstatus mlibVectorDistanceS32Sat(mlibd64 *z, const mlibs32 *x,
          const mlibs32 *y, mlibs32 n);


DESCRIPTION
     Each of these functions  computes  the  Euclidean  distances
     between two vectors.


     The following equation is used:

                n-1
       z[0] = { SUM (x[i] - y[i])**2 }**0.5
                i=0


PARAMETERS
     Each of the functions takes the following arguments:

     z    Pointer to the distance between the two vectors.


     x    Pointer to the first element of the first  source  vec-
          tor.


     y    Pointer to the first element of the second source  vec-
          tor.






SunOS 5.11           Last change: 2 Mar 2007                    1






mediaLib Library Functions      mlibVectorDistanceU8Sat(3MLIB)



     n    Number of elements in the vectors.


RETURN VALUES
     Each of the functions returns  MLIBSUCES  if  successful.
     Otherwise it returns MLIBFAILURE.

ATRIBUTES
     See attributes(5) for descriptions of the  following  attri-
     butes:



     
           ATRIBUTE TYPE               ATRIBUTE VALUE       
    
     Interface Stability          Committed                   
    
     MT-Level                     MT-Safe                     
    


SEE ALSO
     attributes(5)































SunOS 5.11           Last change: 2 Mar 2007                    2



OpenSolaris man pages main menu

Contact us      |       About us      |       Term of use      |       Copyright © 2000-2010 MyWebUniversity.com ™