CONVERT A CURVE COLUMN TO A MATRIX

Reads a curve column from a dataset, extracts the y-point arrays from each curve, and reshapes them into a fixed-width numeric matrix appended as a new column. Use this worker when downstream ML or statistical steps require tabular (matrix) representations of curve data.

When to use

Classification: process.

Tagged: curve, curve_column_to_matrix, dataset_transform, matrix, reshape, tabular.

Inputs

Label ID Type Default Required Description
Dataset dataset_1 dataset   Input dataset that must contain at least one curve-typed column; leave unconnected only if the dataset is supplied dynamically by an upstream worker.
Curve Column cols select Name of the curve column within dataset_1 whose y-point arrays will be flattened into the output matrix; must be selected from the columns of the connected dataset.
Number Of Columns For Matrix matrix_cols scalar 2   Number of columns to split the curve y-points into when forming the matrix (integer, default 2); increase to widen the output matrix when curves have more y-points per row.
Column Name new_col_name scalar Matrix   Name assigned to the new matrix column appended to the output dataset (string, default “Matrix”); override to avoid naming collisions when multiple matrix columns are created in a workflow.

Outputs

Label ID Type Description
Transformed Dataset dataset_column_to_matrix dataset A copy of the input dataset with the selected curve column replaced or augmented by a new matrix column whose rows contain the reshaped y-point arrays, formatted as a d3VIEW dataset.

Disciplines

  • data.curve.transform
  • data.dataset.transform

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=dataset_curve_column_to_matrix


Auto-generated from transformation schema. Worker id: dataset_curve_column_to_matrix. Schema hash: 7a9a82b39ac6. Hand-curated docs in workerexamples/ override this page when present.