aspcol.kernelinterpolation.reconstruct_freq
- aspcol.kernelinterpolation.reconstruct_freq(krr_params, pos_output, pos_data, wave_num, kernel_func=None, kernel_args=None)
Reconstruct the function from kernel ridge regression parameters
- Parameters:
krr_params (ndarray of shape (num_freq, num_pos_data)) – the kernel ridge regression parameters, referred to with “a” in many papers
pos_output (ndarray of shape (num_pos_output, 3)) – positions where the function is to be estimated
pos_data (ndarray of shape (num_pos_data, 3)) – positions where the function has been measured
wave_num (ndarray of shape (num_freq,)) – the wave number for the sound field, defined as 2*pi*freq/c
kernel_func (callable) – with calling signature kernel_func(pos1, pos2, wave_num, *kernel_args) should return ndarray (…, num_pos1, num_pos2)
kernel_args (list) – extra arguments that are needed for the kernel function
- Returns:
the estimated function at pos_output
- Return type:
ndarray of shape (num_freq, num_pos_output)