Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
blob: 2f1dd47d6e82069d83db5b15840384bd0c6edee4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0"?>
<!--
  Copyright (C) 2016 R-T Specialty, LLC.

  This file is part of tame-core.

  tame-core 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 3 of the
  License, or (at your option) any later version.

  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, see <http://www.gnu.org/licenses/>.
-->
<package xmlns="http://www.lovullo.com/rater"
         xmlns:c="http://www.lovullo.com/calc"
         core="true"
         title="Dummy Values">

  These are dummy values created primarily for testing.

  Vectors are required for iteration;
    the below generate values useful for doing so in constant,
    calculation, and classification form.


  <const name="VEC1" desc="Vector of length 1">
    <item value="1" desc="Dummy value" />
  </const>
  <const name="VEC2" desc="Vector of length 2">
    <item value="1" desc="Dummy value" />
    <item value="2" desc="Dummy value" />
  </const>
  <const name="VEC3" desc="Vector of length 3">
    <item value="1" desc="Dummy value" />
    <item value="2" desc="Dummy value" />
    <item value="3" desc="Dummy value" />
  </const>


  <rate yields="_vec1">
    <c:sum of="VEC1" generates="vec1" index="k"
           desc="Vector of length 1">
      <c:const value="1" desc="Dummy" />
    </c:sum>
  </rate>
  <rate yields="_vec2">
    <c:sum of="VEC2" generates="vec2" index="k"
           desc="Vector of length 2">
      <c:const value="1" desc="Dummy" />
    </c:sum>
  </rate>
  <rate yields="_vec3">
    <c:sum of="VEC3" generates="vec3" index="k"
           desc="Vector of length 3">
      <c:const value="1" desc="Dummy" />
    </c:sum>
  </rate>


  <classify as="length1" desc="Classification of length 1">
    <match on="vec1">
      <c:gt>
        <c:const value="0" desc="Check if defined" />
      </c:gt>
    </match>
  </classify>
  <classify as="length2" desc="Classification of length 2">
    <match on="vec2">
      <c:gt>
        <c:const value="0" desc="Check if defined" />
      </c:gt>
    </match>
  </classify>
  <classify as="length3" desc="Classification of length 3">
    <match on="vec3">
      <c:gt>
        <c:const value="0" desc="Check if defined" />
      </c:gt>
    </match>
  </classify>
</package>