Mercurial > hg > amuse
comparison tools/segmentation/generics.lisp @ 80:9f2282a2644e
Skeleton for segmentation interface
darcs-hash:20070716163337-f76cc-f7db9c490fab20196922118d8acd3235b4802840.gz
author | David Lewis <d.lewis@gold.ac.uk> |
---|---|
date | Mon, 16 Jul 2007 17:33:37 +0100 |
parents | 6b2ac9eef629 |
children | c81375b9304f |
comparison
equal
deleted
inserted
replaced
79:dc01096751af | 80:9f2282a2644e |
---|---|
33 (defgeneric segments-beforep (segmenter) | 33 (defgeneric segments-beforep (segmenter) |
34 (:method ((s before-segmenter)) t) | 34 (:method ((s before-segmenter)) t) |
35 (:method ((s after-segmenter)) nil)) | 35 (:method ((s after-segmenter)) nil)) |
36 (defgeneric segments-afterp (segmenter) | 36 (defgeneric segments-afterp (segmenter) |
37 (:method (s) (not (segments-beforep s)))) | 37 (:method (s) (not (segments-beforep s)))) |
38 | |
39 (defgeneric make-segmentation (segmenter composition) | |
40 (:documentation "Basic way to generate segmentation | |
41 object. N.B. Requires segmenter to do more work than | |
42 hitherto.")) | |
43 | |
44 (defgeneric ground-truth-segmentation (segmentation) | |
45 (:documentation "Returns the relevant ground-truth for | |
46 evaluating segmentation")) | |
47 (defgeneric (setf ground-truth-segmentation) (segmentation value) | |
48 (:documentation "Sets the segmentation to be used as ground | |
49 truth by segmentation to value")) | |
50 (defgeneric precision (segmentation) | |
51 (:documenatation "Returns the precision ratio for segmentation | |
52 when compared with the (ground-truth-segmentation | |
53 segmentation)")) | |
54 (defgeneric recall (segmentation) | |
55 (:documenatation "Returns the precision ratio for segmentation | |
56 when compared with the (ground-truth-segmentation | |
57 segmentation)")) | |
58 (defgeneric fall-out (segmentation) | |
59 (:documenatation "Returns the precision ratio for segmentation | |
60 when compared with the (ground-truth-segmentation | |
61 segmentation)")) | |
62 (defgeneric F-measure (segmentation) | |
63 (:documenatation "Returns the precision ratio for segmentation | |
64 when compared with the (ground-truth-segmentation | |
65 segmentation)")) | |
66 | |
67 (defgeneric boundary-list (segmentation) | |
68 (:documentation "Returns a list of moments corresponding to the | |
69 boundary points of the segmentation")) | |
70 (defgeneric segment-list (segmentation) | |
71 (:documentation "Returns a list of anchored periods | |
72 corresponding to the segments resulting from the segmentation")) |