src/numafunc1.c
NUMA *
numaMakeSequence(l_float32  startval,
                 l_float32  increment,
                 l_int32    size)
{
l_int32    i;
l_float32  val;
NUMA      *na;

    PROCNAME("numaMakeSequence");

    if ((na = numaCreate(size)) == NULL)
        return (NUMA *)ERROR_PTR("na not made", procName, NULL);

    for (i = 0; i < size; i++) {
        val = startval + i * increment;
        numaAddNumber(na, val);
    }

    return na;
}
/*!
 *  numaMakeSequence()
 *
 *      Input:  startval
 *              increment
 *              size (of sequence)
 *      Return: numa of sequence of evenly spaced values, or null on error
 */
numaMakeSequence()
Input:  startval
increment
size (of sequence)
Return: numa of sequence of evenly spaced values, or null on error
numaMakeSequence () Input : startval increment size ( of sequence ) Return : numa of sequence of evenly spaced values or null on error
NUMA *
numaMakeSequence(l_float32  startval,
                 l_float32  increment,
                 l_int32    size)
{
l_int32    i;
l_float32  val;
NUMA      *na;
    PROCNAME("numaMakeSequence");
    if ((na = numaCreate(size)) == NULL)
        return (NUMA *)ERROR_PTR("na not made", procName, NULL);
    for (i = 0; i < size; i++) {
        val = startval + i * increment;
        numaAddNumber(na, val);
    }
    return na;
}
NUMA * numaMakeSequence ( l_float32 startval , l_float32 increment , l_int32 size ) { l_int32 i ; l_float32 val ; NUMA * na ; PROCNAME ( " " ) ; if ( ( na = numaCreate ( size ) ) == NULL ) return ( NUMA * ) ERROR_PTR ( " " , procName , NULL ) ; for ( i = 0 ; i < size ; i ++ ) { val = startval + i * increment ; numaAddNumber ( na , val ) ; } return na ; }
numaMakeSequence()
      Input:  startval
              increment
              size (of sequence)
      Return: numa of sequence of evenly spaced values, or null on error
numaMakeSequence () Input : startval increment size ( of sequence ) Return : numa of sequence of evenly spaced values or null on error