Sha256: f063e85d2bad0230a6beb70b27dd11c68becb833894bbc8cd85cc3e29211b3ff

Contents?: true

Size: 474 Bytes

Versions: 2

Compression:

Stored size: 474 Bytes

Contents

#include <rice/rice.hpp>
#include "bayesian_ab.hpp"

extern "C"
void Init_ext() {
  auto rb_mFieldTest = Rice::define_module("FieldTest");

  Rice::define_class_under(rb_mFieldTest, "Calculations")
    .define_singleton_function("prob_b_beats_a", &bayesian_ab::prob_b_beats_a)
    .define_singleton_function("prob_c_beats_a_and_b", &bayesian_ab::prob_c_beats_a_and_b)
    .define_singleton_function("prob_d_beats_a_and_b_and_c", &bayesian_ab::prob_d_beats_a_and_b_and_c);
}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
field_test-0.5.1 ext/field_test/ext.cpp
field_test-0.5.0 ext/field_test/ext.cpp