MCPcopy Create free account
hub / github.com/apache/arrow / garrow_winsorize_options_class_init

Function garrow_winsorize_options_class_init

c_glib/arrow-glib/compute.cpp:10531–10587  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10529}
10530
10531static void
10532garrow_winsorize_options_class_init(GArrowWinsorizeOptionsClass *klass)
10533{
10534 auto gobject_class = G_OBJECT_CLASS(klass);
10535
10536 gobject_class->set_property = garrow_winsorize_options_set_property;
10537 gobject_class->get_property = garrow_winsorize_options_get_property;
10538
10539 auto options = arrow::compute::WinsorizeOptions();
10540
10541 GParamSpec *spec;
10542 /**
10543 * GArrowWinsorizeOptions:lower-limit:
10544 *
10545 * The quantile below which all values are replaced with the quantile's value.
10546 * For example, if lower_limit = 0.05, then all values in the lower 5% percentile
10547 * will be replaced with the 5% percentile value.
10548 *
10549 * Since: 23.0.0
10550 */
10551 spec = g_param_spec_double(
10552 "lower-limit",
10553 "Lower limit",
10554 "The quantile below which all values are replaced with the quantile's value. For "
10555 "example, if lower_limit = 0.05, then all values in the lower 5% percentile will be "
10556 "replaced with the 5% percentile value",
10557 0.0,
10558 1.0,
10559 options.lower_limit,
10560 static_cast<GParamFlags>(G_PARAM_READWRITE));
10561 g_object_class_install_property(gobject_class,
10562 PROP_WINSORIZE_OPTIONS_LOWER_LIMIT,
10563 spec);
10564
10565 /**
10566 * GArrowWinsorizeOptions:upper-limit:
10567 *
10568 * The quantile above which all values are replaced with the quantile's value.
10569 * For example, if upper_limit = 0.95, then all values in the upper 95% percentile
10570 * will be replaced with the 95% percentile value.
10571 *
10572 * Since: 23.0.0
10573 */
10574 spec = g_param_spec_double(
10575 "upper-limit",
10576 "Upper limit",
10577 "The quantile above which all values are replaced with the quantile's value. For "
10578 "example, if upper_limit = 0.95, then all values in the upper 95% percentile will be "
10579 "replaced with the 95% percentile value",
10580 0.0,
10581 1.0,
10582 options.upper_limit,
10583 static_cast<GParamFlags>(G_PARAM_READWRITE));
10584 g_object_class_install_property(gobject_class,
10585 PROP_WINSORIZE_OPTIONS_UPPER_LIMIT,
10586 spec);
10587}
10588

Callers

nothing calls this directly

Calls 1

WinsorizeOptionsFunction · 0.85

Tested by

no test coverage detected