YAC 3.21.0
Yet Another Coupler
Loading...
Searching...
No Matches
interp_method_nnn.h
Go to the documentation of this file.
1// Copyright (c) 2024 The YAC Authors
2//
3// SPDX-License-Identifier: BSD-3-Clause
4
5#ifndef INTERP_METHOD_NNN_H
6#define INTERP_METHOD_NNN_H
7
9
10// YAC PUBLIC HEADER START
11
19
20#define YAC_INTERP_NNN_WEIGHTED_DEFAULT (YAC_INTERP_NNN_AVG)
21#define YAC_INTERP_NNN_N_DEFAULT (1)
23#define YAC_INTERP_NNN_N_MIN_DEFAULT (0)
24#define YAC_INTERP_NNN_MAX_SEARCH_DISTANCE_DEFAULT (0.0)
25#define YAC_INTERP_NNN_GAUSS_SCALE_DEFAULT (0.1)
26
27#define YAC_INTERP_RBF_N_DEFAULT (9)
29#define YAC_INTERP_RBF_N_MIN_DEFAULT (0)
30#define YAC_INTERP_RBF_MAX_SEARCH_DISTANCE_DEFAULT (0.0)
31#define YAC_INTERP_RBF_SCALE_DEFAULT (1.487973e+01)
32#define YAC_INTERP_RBF_KERNEL_DEFAULT (0)
33
51
54
55// YAC PUBLIC HEADER STOP
56
57// Modular config constructor for vtable-based config system
58
65
72
73#endif // INTERP_METHOD_NNN_H
Defines the interface of the interpolation method "base class" in YAC.
struct yac_interp_method_config * yac_interp_method_config_default_nnn_new(void)
Creates a nearest-neighbour interpolation method configuration with default parameters.
yac_interp_nnn_weight_type
@ YAC_INTERP_NNN_GAUSS
distance with Gauss weights of n source points
@ YAC_INTERP_NNN_RBF
radial basis functions
@ YAC_INTERP_NNN_AVG
average of n source points
@ YAC_INTERP_NNN_DIST
distance weighted average of n source points
@ YAC_INTERP_NNN_ZERO
all weights are set to zero
struct interp_method * yac_interp_method_nnn_new(struct yac_interp_method_nnn_config config)
struct yac_interp_method_config * yac_interp_method_config_default_rbf_new(void)
Creates a radial-basis-function interpolation method configuration with default parameters.
union yac_interp_method_nnn_config::@39 data
enum yac_interp_nnn_weight_type type
static struct yac_interp_method_config * config