built in operator: rescale

    description:
        rescale sp
        rescale[t] sp
        rescale the coefficients of the given superposition so the coeff of the max element is t
        if t is not specified, t defaults to 1

    examples:
        rescale rank split |a b c d e f>
            0.167|a> + 0.333|b> + 0.5|c> + 0.667|d> + 0.833|e> + |f>

        rescale[100] rank split |a b c d e f>
            16.667|a> + 33.333|b> + 50|c> + 66.667|d> + 83.333|e> + 100|f>

    see also:
        srescale, normalize, snormalize, softmax

Home