Common Lisp Package: CLNUPLOT

README:

FUNCTION

Public

MAKE-ROC-PLOT (DATA &REST ARGS &KEY PLOT (LINEWIDTH 2) &ALLOW-OTHER-KEYS)

Data can either be a single plot or multiple plots. In the first case, it should be a list of pairs of numbers; in the second it should be a list of lists of pairs of numbers.

ROC! (EXAMPLES COUNT-POSITIVE COUNT-NEGATIVE F TEST &KEY (WEIGHT (CONSTANTLY 1)) (BETA NIL) (SORT? T))

Returns (as multiple values) a list of points for an ROC curve and a list of f-measures associated with those points. The ROC curve algorithm is from Tom Facwett's ROC Graphs: Notes and Practical Considerations for Data Mining Researchers. See moab entry fawcett-roc-2003 for more information. If you know that the examples are already sorted, you can use the sort? keyword to prevent this from sorting them again. The :beta keyword is passed along to the f-measure function. The :weight keyword is provided to handles aggreates of examples.

Undocumented

FULLPATH (PLOT)

HISTOGRAM (DATA &REST ARGS &KEY (X-COORD 'FIRST) (Y-COORD 'SECOND) (KEY (CONSTANTLY T)) (TITLE Histogram) (XLABEL ) (YLABEL ) (FILENAME histogram) (LEGEND-CREATOR (LAMBDA (X) (FORMAT NIL ~A X))) (WIDTH 0.5) &ALLOW-OTHER-KEYS)

MAKE-ROC-PLOT-TEMPLATE (&REST ARGS &KEY (FILENAME roc-curve) (TITLE ROC Curve) (XLABEL False negative rate) (YLABEL True positive rate) (KEY '(BOTTOM RIGHT)) &ALLOW-OTHER-KEYS)

ROC (EXAMPLES COUNT-POSITIVE COUNT-NEGATIVE F TEST &KEY (WEIGHT (CONSTANTLY 1)))

SCATTER-PLOT (DATA &REST ARGS &KEY (X-COORD 'FIRST) (Y-COORD 'SECOND) (KEY (CONSTANTLY T)) (TEST 'EQUAL) (TITLE Scatter Plot) (XLABEL ) (YLABEL ) (FILENAME scatter-plot) (LEGEND-CREATOR (LAMBDA (X) (FORMAT NIL ~A X))) &ALLOW-OTHER-KEYS)

Private

PATHNAME-NAME+TYPE (PATHNAME)

Returns a new pathname consisting of only the name and type from a non-wild pathname.

Undocumented

DATA->N-BUCKETS (DATA BUCKET-COUNT KEY &KEY BUCKET-CENTER)

EXECUTE-PLOT (PLOT)

MAKE-STRING-SAFE-FOR-UNIX (STRING)

PLOT-KIND->PLOT-STYLE (PLOT-KIND)

PLOT-KIND->POINT-KIND (PLOT-KIND)

QUICK-PLOT (DATA &REST ARGS &KEY (PLOT-KIND POINTS) (X-COORD 'FIRST) (Y-COORD 'SECOND) (KEY (CONSTANTLY T)) (TEST 'EQUAL) (TITLE Scatter Plot) (XLABEL ) (YLABEL ) (FILENAME scatter-plot) (LEGEND-CREATOR (LAMBDA (X) (FORMAT NIL ~A X))) &ALLOW-OTHER-KEYS)

SET-SETTINGS (POSSIBILE-SETTINGS OBJECT SETTINGS)

GENERIC-FUNCTION

Public

WRITE-PLOT (PLOT STYLE)

Undocumented

MAKE-PLOT (PLOT-KIND DATA &REST ARGS &KEY NAME (COMMENT NIL) (FILENAME plot) (PLOT (MAKE-INSTANCE 'GNUPLOT COMMENT COMMENT FILENAME FILENAME)) &ALLOW-OTHER-KEYS)

Private

Undocumented

DETERMINE-WIDTH (WIDTH)

FORMAT-VALUE-FOR-GNUPLOT (NAME VALUE)

HANDLE-SETTING (KIND NAME DATA VALUE)

LABELSP (PLOT)

MAKE-DATA-POINT (POINT-KIND DATUM &KEY (X-COORD 'FIRST) (Y-COORD 'SECOND) (WIDTH 0.5) (LABEL 'THIRD) (OFFSET NIL) &ALLOW-OTHER-KEYS)

MAKE-DATA-SET (PLOT-KIND DATA &REST ARGS &KEY (COMMENT NIL) (FILTER (CONSTANTLY T)) &ALLOW-OTHER-KEYS)

WRITE-DATA-SET (DATA-SET OUT)

WRITE-PLOT-SETTINGS (PLOT OUT)

SLOT-ACCESSOR

Public

Undocumented

FILENAME (OBJECT)

SETFFILENAME (NEW-VALUE OBJECT)

Private

Undocumented

COMMENT (OBJECT)

SETFCOMMENT (NEW-VALUE OBJECT)

DATA (OBJECT)

DATA-SETS (OBJECT)

FILEPATH (OBJECT)

SETFFILEPATH (NEW-VALUE OBJECT)

HOST (OBJECT)

SETFHOST (NEW-VALUE OBJECT)

SETTINGS (OBJECT)

STYLE (OBJECT)

SETFSTYLE (NEW-VALUE OBJECT)

VARIABLE

Public

Undocumented

*GNUPLOT-HOME*

*PLOT-DEFAULT-DIRECTORY*

*PLOT-DEFAULT-HOST*

Private

Undocumented

*PLOT-DATA-SET-SETTINGS*

*PLOT-PLOT-SETTINGS*

*PLOT-PS2PDF-COMMAND*

CLASS

Private

Undocumented

GNUPLOT

PLOT-ABSTRACT

PLOT-DATA-SET