Data Frame<R, C>.Transform Columns Method
Definition
Namespace: Numerics.NET.DataAnalysis
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
Overload List
Transform | Applies the specified transformation to each column in the data frame. |
Transform | Applies the specified transformation to each element of each column in the data frame. |
Transform | Applies the specified transformation to each column in the data frame. |
Transform | Applies the specified transformation to each column in the data frame. |
TransformColumns(Func<IVector, IVector>)
Applies the specified transformation to each column in the data frame.
public virtual DataFrame<R, C> TransformColumns(
Func<IVector, IVector> transformation
)
Parameters
Return Value
DataFrame<R, C>A new data frame that contains the transformed columns.
Remarks
This method assumes that the index of the result of the transformation
has the same element type as the current row index.
Exceptions
Argument | transformation is null. |
TransformColumns<T, U>(Func<T, U>)
Applies the specified transformation to each element of each column in the data frame.
public virtual DataFrame<R, C> TransformColumns<T, U>(
Func<T, U> transformation
)
Parameters
- transformation Func<T, U>
- A transformation function.
Type Parameters
- T
- The element type of the source columns.
- U
- The element type of the result.
Return Value
DataFrame<R, C>A new data frame that contains the transformed columns.
TransformColumns<T, U>(Func<Vector<T>, Vector<U>>)
Applies the specified transformation to each column in the data frame.
public virtual DataFrame<R, C> TransformColumns<T, U>(
Func<Vector<T>, Vector<U>> transformation
)
Parameters
Type Parameters
- T
- The element type of the source columns.
- U
- The element type of the result.
Return Value
DataFrame<R, C>A new data frame that contains the transformed columns.
Remarks
This method assumes that the index of the result of the transformation
has the same element type as the current row index.
TransformColumns<T, U, R1>(Func<Vector<T>, Vector<U>>)
Applies the specified transformation to each column in the data frame.
public virtual DataFrame<R1, C> TransformColumns<T, U, R1>(
Func<Vector<T>, Vector<U>> transformation
)
Parameters
Type Parameters
- T
- The element type of the source columns.
- U
- The element type of the result.
- R1
- The element type of the row index of the result.
Return Value
DataFrame<R1, C>A new data frame that contains the transformed columns.