Deborah.Sarah.XYInfoGenerator
Deborah.Sarah.XYInfoGenerator.gen_X_info — Methodgen_X_info(
X_df::AbstractArray{T,2},
N_cnf::Int,
N_src::Int,
read_column::Int
) -> Array{T,2}Extract a single component (e.g., real or imaginary) from a specific column of the X data matrix, and reshape it into a 2D array of shape (N_cnf, N_src).
This function ignores multi-channel assumptions (such as real/imaginary separation) and simply uses the specified read_column.
Arguments
X_df::AbstractArray{T,2}Raw input data matrix from anXfile. Shape must be(N_cnf$\times$N_src,$\ge$read_column).N_cnf::IntNumber of configurations (i.e., groups of sources inX).N_src::IntNumber of sources per configuration.read_column::Int$1$-based column index to extract values from.
Returns
Array{T,2}A 2D array of shape(N_cnf, N_src)containing values from the selected column only.
Deborah.Sarah.XYInfoGenerator.gen_conf_from_Y — Methodgen_conf_from_Y(
Y_df::AbstractArray{T,2},
N_cnf::Int,
N_src::Int,
index_column::Int
) -> Vector{Int}Extract configuration indices from a specific column in a 2D array representing Y data.
This function scans the Y file data and retrieves configuration numbers at fixed intervals, typically from every N_src-th row. If index_column > 0, values are extracted from that specific column. If index_column == 0, default configuration numbers 1:N_cnf are assigned.
Arguments
Y_df::AbstractArray{T,2}Raw data array loaded from aYfile. Must have at leastN_cnf * N_srcrows and enough columns. Expected shape:(N_cnf$\times$N_src,$\ge$index_column).N_cnf::IntNumber of unique configurations (i.e., the number of groups in theYdata).N_src::IntNumber of sources (rows) per configuration.index_column::Int$1$-based column index from which to extract configuration numbers. If set to0, configuration numbers are auto-generated as1:N_cnf.
Returns
Vector{Int}Vector of configuration indices of lengthN_cnf.
Examples
Y = rand(5500, 3)
conf = gen_conf_from_Y(Y, 1100, 5, 3) # extract from 3rd column