Binning/grouping attribute values

frankie
frankie New Altair Community Member
edited November 5 in Community Q&A
Hello,

while this too might be a simple question I need help. Let's say that I have one numerical attribute that has a range of [0,100]. How do I cut of the "tail" so that all values that are larger than say 70 get the value 70? Can this be done with one operator? If so, which one and how?

Thank you,
frankie
Tagged:

Answers

  • haddock
    haddock New Altair Community Member
    if a1 is the attribute's name, like this..
    <operator activated="false" class="generate_attributes" compatibility="5.0.000" expanded="true" height="76" name="Generation" width="90" x="313" y="120">
            <list key="function_descriptions">
              <parameter key="min" value="min(70,a1)"/>
            </list>
          </operator>

  • frankie
    frankie New Altair Community Member
    Obviously... ::)
    Thank you!