A computer-implemented method for coding an output data set, in which respectively one output data value (P 1; P 2; P 3; P 4) is specified for each of a plurality of output data points, for generating a compressed data set, comprising: - primary encoding of the output data set for generating an intermediate data set, comprising: -- specifying a plurality of data point blocks each comprising a plurality of output data points of the output data set; -- determining a block data value for each data point block from the plurality of output data values (P 1; P 2; P 3; P 4) within the respective data point block; -- checking each data point block for compliance with a tolerance criterion; and -- generating the intermediate data set such that the intermediate data set for each data point block in which the tolerance criterion is complied with contains the block data value as a single data value and for each data point block in which the tolerance criterion is not complied with contains the individual output data values (P 1; P 2; P 3; P 4) at the output data points of the respective data point block; and - secondary encoding of the intermediate data set for generating the compressed data set; characterized in that checking each data point block for compliance with the tolerance criterion comprises: - determining a tolerance value for each output data point; - determining a reference value for each output data point as a function of the determined block data value of the respective data point block; and - checking each output data point within the data point block as to whether a deviation (D 1; D 2; D 3; D 4) of the associated output data value from the respective reference value lies within the respective tolerance value; and wherein determining a tolerance value for each output data point takes place as a function of the output data values of neighboring output data points. - primary encoding of the output data set for generating an intermediate data set, comprising: -- specifying a plurality of data point blocks each comprising a plurality of output data points of the output data set; -- determining a block data value for each data point block from the plurality of output data values (P 1; P 2; P 3; P 4) within the respective data point block; -- checking each data point block for compliance with a tolerance criterion; and -- generating the intermediate data set such that the intermediate data set for each data point block in which the tolerance criterion is complied with contains the block data value as a single data value and for each data point block in which the tolerance criterion is not complied with contains the individual output data values (P 1; P 2; P 3; P 4) at the output data points of the respective data point block; and -- specifying a plurality of data point blocks each comprising a plurality of output data points of the output data set; -- determining a block data value for each data point block from the plurality of output data values (P 1; P 2; P 3; P 4) within the respective data point block; -- checking each data point block for compliance with a tolerance criterion; and -- generating the intermediate data set such that the intermediate data set for each data point block in which the tolerance criterion is complied with contains the block data value as a single data value and for each data point block in which the tolerance criterion is not complied with contains the individual output data values (P 1; P 2; P 3; P 4) at the output data points of the respective data point block; and - secondary encoding of the intermediate data set for generating the compressed data set; - determining a tolerance value for each output data point; - determining a reference value for each output data point as a function of the determined block data value of the respective data point block; and - checking each output data point within the data point block as to whether a deviation (D 1; D 2; D 3; D 4) of the associated output data value from the respective reference value lies within the respective tolerance value; and