def defineField(self, name, encoderParams=None):
self.fields.append(_field(name, encoderParams))<EOL>return len(self.fields)-<NUM_LIT:1><EOL>
Initialize field using relevant encoder parameters.
        Parameters:
        -------------------------------------------------------------------
        name:                 Field name
        encoderParams:        Parameters for the encoder.

        Returns the index of the field