Data Frame.Apply<R, C, T> Method
Applies the specified matrix function to two data frames and returns the result.
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
A new data frame that is the result of applying function to left and right converted to matrices with element type T.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public static DataFrame<R, C> Apply<R, C, T>(
Func<Matrix<T>, Matrix<T>, Matrix<T>> function,
DataFrame<R, C> left,
DataFrame<R, C> right
)
Parameters
- function Func<Matrix<T>, Matrix<T>, Matrix<T>>
- A function that maps two matrices with element type T to another matrix.
- left DataFrame<R, C>
- The data frame that provides the first argument to function.
- right DataFrame<R, C>
- The data frame that provides the second argument to function.
Type Parameters
- R
- The element type of the row index of the data frames.
- C
- The element type of the column index of the data frames.
- T
- The element type of the matrix function.
Return Value
DataFrame<R, C>A new data frame that is the result of applying function to left and right converted to matrices with element type T.