NAME
RdefaultCellRepr - returns default cell representation of a value scale/cellRepr
SYNOPSIS
#include "csf.h"
CSF_CR RdefaultCellRepr(CSF_VS vs);
PARAMETERS
-
CSF_VS vs
-
value scale
Possible values for a
CSF_VS
are as follows:
* version 1 datatypes,
these can be returned by BUT NOT passed to a csf2 function
- VS_NOTDETERMINED - Version 1.
- VS_CLASSIFIED - Version 1.
- VS_CONTINUOUS - Version 1.
* version 2 datatypes
these two can be returned by or passed to a csf2 function
- VS_BOOLEAN - Boolean, always UINT1, values: 0,1 or MV_UINT1.
- VS_NOMINAL - Nominal, UINT1 or INT4.
- VS_ORDINAL - Ordinal, UINT1 or INT4.
- VS_SCALAR - Scalar, REAL4 or (maybe) REAL8.
- VS_DIRECTION - Directional REAL4 or (maybe) REAL8, -1 means no direction.
- VS_LDD - Local drain direction, always UINT1, values: 1-9 or MV_UINT1.
* this one CANNOT be returned by NOR passed to a csf2 function
- VS_UNDEFINED - Just some value different from the rest.
DESCRIPTION
returns default cell representation of a value scale/cellRepr
RETURNS
the appropriate cell representation constant (CR_something)
or CR_UNDEFINED if vs is not a csf2 datatype
Possible values for a
CSF_CR
are as follows:
* preferred version 2 cell representations
- CR_UINT1 - Boolean, ldd and small nominal and small ordinal.
- CR_INT4 - Large nominal and large ordinal.
- CR_REAL4 - Single scalar and single directional.
* other version 2 cell representations
- CR_REAL8 - Double scalar or directional, and also the only type that
can hold all
cell representation without loss of precision.
* version 1 cell representations
these can be returned by BUT NOT passed to a csf2 function
- CR_INT1 -
.
- CR_INT2 -
.
- CR_UINT2 -
.
- CR_UINT4 -
.
* this one CANNOT be returned by NOR passed to a csf2 function
- CR_UNDEFINED - Just some value different from the rest.