#include <oxstd.h>
#include <oxdraw.h>
main()
{
    decl m = cumulate(rann(100,1), 0.9);

    DrawMatrix(0, m', "data", 0, 1);
    DrawCorrelogram(1, m', "DrawCorrelogram", 9);
    
    decl macf = acf(m, 9);          // compute standard ACF
    DrawMatrix(2, macf[1:][]', "acf", 1, 1);// draw the ACF
    DrawAdjust(ADJ_INDEX, 1);       // change to index line
    DrawAdjust(ADJ_MINMAX, -1, 1); // set y range to [-1 1]

    DrawAcf(3, m', "DrawAcf", 9);
	
//    SaveDrawWindow("draw5.eps");
    ShowDrawWindow();
}
