The Complete SPRLIB & ANNLIB

fprintf_pattern

- write a pattern from a specific class to a stream (LOCAL)

SYNOPSIS

int fprintf_pattern (stream, components, class, pattern, header)

ARGUMENTS

FILE *stream A valid filepointer.
int components The number of elements to be written, i.e. the maximum index of pattern.
int class The class number of the pattern to be written.
double pattern[] A vector, with elements 1..components.
int header A boolean indicating whether a remark-header should be printed (containing the class indices).

RETURNS

TRUE if an error was detected, FALSE if not.

FUNCTION

This routine writes one pattern to an opened stream. See DATASET-IO-format for the layout.

NOTE

This function is used by the fprintf_dataset function through fprintf_sample. The remark-header is only implemented for readability of the file.

SEE ALSO

fprintf_io_pattern, fprintf_header, fprintf_sample, fprintf_dataset, fprintf_compressed_dataset

This document was generated using api2html on Thu Mar 5 09:00:00 MET DST 1998