31.01.2014 Views

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

Version 5.0 The LEDA User Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

void<br />

void<br />

C.set tgt file(const char ∗ file name)<br />

sets a file as target stream.<br />

C.reset(bool keep parameters = true)<br />

puts C in the same state as the default constructor.<br />

If keep parameters is false the parameters are set to<br />

their default values.<br />

bool C.failed( ) returns true if an error occured.<br />

bool C.finished( ) returns true if the coding is finished.<br />

string C.get description( ) provides a description for C.<br />

Additional Operations<br />

uint16 C.get model memory bound( )<br />

returns how much memory (in MB) C is allowed to<br />

use for storing the model.<br />

void<br />

C.set model memory bound(uint16 max mem)<br />

determines the amount of memory available for the<br />

model (in MB).<br />

byte C.get model order( ) returns the order of the model.<br />

void<br />

C.set model order(byte order)<br />

sets the order of the model.<br />

Precondition: order ∈ [2..16].<br />

mr method C.get model restoration method( )<br />

returns the model restoration method.<br />

void<br />

C.set model restoration method(mr method method)<br />

sets the model restoration method.<br />

5. Implementation<br />

Our implementation encapsulates the code by D. Shkarin (the implementation of the<br />

PPMII model) and by D. Subbotin (the implementation of the range coder).

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!