~ubuntu-branches/ubuntu/vivid/nip2/vivid-proposed

« back to all changes in this revision

Viewing changes to share/nip2/start/Math.def

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2009-05-12 09:26:46 UTC
  • mfrom: (1.2.11 upstream) (2.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090512092646-j8lb1w2x69pvgma4
Tags: 7.18.1-1ubuntu1
* Merge from debian unstable (LP: #375435), remaining changes:
  - debian/control: Also Recommend abrowser

Show diffs side-by-side

added added

removed removed

Lines of Context:
369
369
                action a b = map_binary join a b;
370
370
        }
371
371
 
 
372
        Difference_item = class 
 
373
                Menuaction "_Difference" "difference of two lists" {
 
374
                action a b = map_binary difference a b;
 
375
        }
 
376
 
372
377
        Cons_item = class 
373
378
                Menuaction "C_ons" "put element a on the front of list x" {
374
379
                action a x = map_binary cons a x;
475
480
        }
476
481
 
477
482
        Gravity_item = class 
478
 
                Menuaction "Centre of _Gravity" "position of centre of gravity" {
 
483
                Menuaction "Centre of _Gravity" 
 
484
                        "position of centre of gravity of histogram" {
479
485
                action a = map_unary gravity a;
480
486
        }
481
487
 
532
538
                        "fit a line to a set of points and deviations" {
533
539
                action xes yes devs = linregw xes yes devs;
534
540
        }
 
541
 
 
542
        Cluster_item = class 
 
543
                Menuaction "_Cluster" "cluster a list of numbers" {
 
544
                action l = class {
 
545
                        _vislevel = 2;
 
546
        
 
547
                        thresh = Expression "Threshold" 10;
 
548
        
 
549
                        [_r, _w] = cluster thresh.expr l;
 
550
        
 
551
                        result = _r;
 
552
                        weights = _w;
 
553
                }
 
554
        }
535
555
}
536
556
 
537
557
Math_base_item = class