Interface FieldBlendable<B,​T extends FieldElement<T>>

    • Method Detail

      • blendArithmeticallyWith

        B blendArithmeticallyWith​(B other,
                                  T blendingValue)
                           throws MathIllegalArgumentException
        Blend arithmetically this instance with another one.
        Parameters:
        other - other instance to blend arithmetically with
        blendingValue - value from smoothstep function B(x). It is expected to be between [0:1] and will throw an exception otherwise.
        Returns:
        this * (1 - B(x)) + other * B(x)
        Throws:
        MathIllegalArgumentException - if blending value is not within [0:1]