程序包 org.hipparchus.util

接口 FieldBlendable<B,T extends FieldElement<T>>

类型参数:
B - 可混合类
T - 字段元素的类型
所有已知子接口:
FieldMatrix<T>
所有已知实现类:
AbstractFieldMatrix, Array2DRowFieldMatrix, BlockFieldMatrix, FieldVector3D, SparseFieldMatrix

public interface FieldBlendable<B,T extends FieldElement<T>>
Interface representing classes that can blend with other instances of themselves using a given blending value.

The blending value is commonly given from a smoothstep function.

  • 方法概要

    修饰符和类型
    方法
    说明
    B
    blendArithmeticallyWith(B other, T blendingValue)
    Blend arithmetically this instance with another one.
  • 方法详细资料

    • blendArithmeticallyWith

      B blendArithmeticallyWith(B other, T blendingValue) throws MathIllegalArgumentException
      Blend arithmetically this instance with another one.
      参数:
      other - 要进行算术混合的另一个实例
      blendingValue - 来自smoothstep函数B(x)的值。预期应在[0:1]之间,否则将抛出异常。
      返回:
      this * (1 - B(x)) + other * B(x)
      抛出:
      MathIllegalArgumentException - 如果混合值不在[0:1]之间