Update of /cvsroot/pure-data/abstractions/pureunity In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11564
Modified Files: README pureunity.c Log Message: .
Index: README =================================================================== RCS file: /cvsroot/pure-data/abstractions/pureunity/README,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** README 4 Jan 2006 02:59:22 -0000 1.7 --- README 6 Jan 2006 20:19:28 -0000 1.8 *************** *** 226,230 **** [commutator $type $class] (2 inlets) ab-ba [associator $type $class] (2 inlets) (ab)c-a(bc) ! [distributor $type $class1 $class2] (3 inlets) a(b+c)-(ab+ac) [invertor $type $class1 $class2] (2 inlets) ab/b-a
--- 226,230 ---- [commutator $type $class] (2 inlets) ab-ba [associator $type $class] (2 inlets) (ab)c-a(bc) ! [distributor $type $class1 $class2] (3 inlets) a&(b^c)-(a&b^a&c) [invertor $type $class1 $class2] (2 inlets) ab/b-a
*************** *** 236,239 **** --- 236,263 ---- in the same way as it is for help files.
+ for a class called $foo, the protocol (aka interface aka rule) $foo is the + set of behaviours expected from the $foo class; the class called $foo-rule + must repect the $foo protocol as well, plus it should test that the inputs + are valid, and if they are, it should test for one or several results and + report any errors. + + (((To report errors and inaccuracies, output them through the properties outlet at the right. If there is no + properties outlet in $foo (curently almost nothing in Pd has one), + then $foo-rule must have one more outlet than $foo.))) + + (((Float messages coming out of the properties outlet of $foo-rule report + accuracy. Named error messages come out with selector "error" followed by + an error-symbol and then its arguments.))) + + (((In the case of true/false logic, a value of 0 means that a test has passed + and a 1 means that a test has failed. Those values represent failure and not + success. The reason is so that it matches with accuracy levels, where 0 is + perfectly accurate, but any inaccuracy shows up as a relative error fraction. + Any finite nonnegative value is allowed for accuracy, because it is expected + to be the result of a norm))). + + (((In standard math, "Discrete Metric" is when there are only two possible + distances between objects: together=0 and apart=1))) + +-+-+--+---+-----+--------+-------------+---------------------+ ETC
Index: pureunity.c =================================================================== RCS file: /cvsroot/pure-data/abstractions/pureunity/pureunity.c,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pureunity.c 2 Jan 2006 17:03:11 -0000 1.3 --- pureunity.c 6 Jan 2006 20:19:28 -0000 1.4 *************** *** 1,2 **** --- 1,24 ---- + /* + $Id$ + PureUnity + Copyright 2006 by Mathieu Bouchard <matju à artengine point ca> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + See file ./COPYING for further informations on licensing terms. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + #include <sys/time.h> /*#include <m_pd.h>*/