core: Remove @accumulate
Accumulators were an ancient TAME feature removed long ago during The Great Refactoring (...okay, that part didn't fit the definition of a "refactor", but that's technically what that's referring to). TAMER will not accept it. DEV-7145main
parent
3e1bf48a45
commit
acd0aea6a4
|
@ -149,7 +149,7 @@
|
|||
</param>
|
||||
|
||||
<!-- simply returns a constant value for the class match -->
|
||||
<rate-each class="@class@" accumulate="none" generates="@generates@" index="k">
|
||||
<rate-each class="@class@" generates="@generates@" index="k">
|
||||
<c:product>
|
||||
<if name="@value@">
|
||||
<c:value-of name="@value@" />
|
||||
|
|
|
@ -33,30 +33,6 @@
|
|||
<import package="round" export="true" />
|
||||
|
||||
|
||||
<!-- even more trivial, but again, cuts down on code -->
|
||||
<template name="_scalarToAccum_" desc="Simply accumulates a scalar">
|
||||
<param name="@scalar@" desc="Scalar to accumulate" />
|
||||
<param name="@accum@" desc="Accumulator to accumulate into" />
|
||||
|
||||
<!-- this is useless, but required -->
|
||||
<param name="@yields@" desc="Value to yield into, since it's required (useless)">
|
||||
<text>__accum_</text>
|
||||
<param-value name="@accum@" />
|
||||
<text>_</text>
|
||||
<param-value name="@scalar@" />
|
||||
</param>
|
||||
|
||||
<param name="@type@" desc="Accumulation method">
|
||||
<text>all</text>
|
||||
</param>
|
||||
|
||||
<rate yields="@yields@">
|
||||
<accumulate into="@accum@" type="@type@" />
|
||||
<c:value-of name="@scalar@" />
|
||||
</rate>
|
||||
</template>
|
||||
|
||||
|
||||
<!--
|
||||
Map values falling within adjacent intervals
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
<param-value name="@generates@" />
|
||||
</param>
|
||||
|
||||
<rate-each class="@class@" accumulate="none" yields="@yields@" generates="@generates@" index="k">
|
||||
<rate-each class="@class@" yields="@yields@" generates="@generates@" index="k">
|
||||
<c:apply name="max">
|
||||
<c:arg name="max1">
|
||||
<c:value-of name="@a@" index="k" />
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
<text></text>
|
||||
</param>
|
||||
|
||||
<rate accumulate="none" yields="@yields@">
|
||||
<rate yields="@yields@">
|
||||
<c:sum of="@a@" index="k" generates="@into@" desc="@gendesc@" sym="@sym@">
|
||||
<c:value-of name="@a@" index="k" />
|
||||
<c:value-of name="@b@" index="k" />
|
||||
|
|
|
@ -74,7 +74,7 @@
|
|||
|
||||
<!-- this conversion is as simple as using a generator to yield the value
|
||||
of _CMATCH_ for each index -->
|
||||
<rate class="@class@" accumulate="none" yields="@yields@" always="true" keep="@keep@">
|
||||
<rate class="@class@" yields="@yields@" always="true" keep="@keep@">
|
||||
<c:sum of="_CMATCH_" index="k" generates="@generates@" desc="@gendesc@" sym="@sym@">
|
||||
<c:value-of name="_CMATCH_" index="k" />
|
||||
</c:sum>
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
<param-value name="@line@" />
|
||||
</param>
|
||||
|
||||
<rate-each class="@line@" accumulate="none" yields="@yields@" generates="@into@" index="k">
|
||||
<rate-each class="@line@" yields="@yields@" generates="@into@" index="k">
|
||||
<!-- take the dot product of the two vectors (each part of a larger matrix)
|
||||
to get the rate for the associated class code -->
|
||||
<c:product dot="true" label="Dot product between the class and rate vectors for each location will yield the respective rate per location">
|
||||
|
|
|
@ -315,7 +315,7 @@
|
|||
<param-value name="@generates@" />
|
||||
</param>
|
||||
|
||||
<rate-each class="@class@" accumulate="none" yields="@yields@" generates="@generates@" index="@index@">
|
||||
<rate-each class="@class@" yields="@yields@" generates="@generates@" index="@index@">
|
||||
<c:apply name="maxreduce">
|
||||
<c:arg name="maxreduce_set">
|
||||
<c:vector>
|
||||
|
|
Loading…
Reference in New Issue