alglibmisc.h
Go to the documentation of this file.
50 {
71 {
77 }
85 {
104 };
106 {
164 {
287 void kdtreebuild(const real_2d_array &xy, const ae_int_t n, const ae_int_t nx, const ae_int_t ny, const ae_int_t normtype, kdtree &kdt);
288 void kdtreebuild(const real_2d_array &xy, const ae_int_t nx, const ae_int_t ny, const ae_int_t normtype, kdtree &kdt);
328 void kdtreebuildtagged(const real_2d_array &xy, const integer_1d_array &tags, const ae_int_t n, const ae_int_t nx, const ae_int_t ny, const ae_int_t normtype, kdtree &kdt);
329 void kdtreebuildtagged(const real_2d_array &xy, const integer_1d_array &tags, const ae_int_t nx, const ae_int_t ny, const ae_int_t normtype, kdtree &kdt);
396 ae_int_t kdtreequeryknn(const kdtree &kdt, const real_1d_array &x, const ae_int_t k, const bool selfmatch);
441 ae_int_t kdtreetsqueryknn(const kdtree &kdt, const kdtreerequestbuffer &buf, const real_1d_array &x, const ae_int_t k, const bool selfmatch);
442 ae_int_t kdtreetsqueryknn(const kdtree &kdt, const kdtreerequestbuffer &buf, const real_1d_array &x, const ae_int_t k);
479 ae_int_t kdtreequeryrnn(const kdtree &kdt, const real_1d_array &x, const double r, const bool selfmatch);
525 ae_int_t kdtreetsqueryrnn(const kdtree &kdt, const kdtreerequestbuffer &buf, const real_1d_array &x, const double r, const bool selfmatch);
526 ae_int_t kdtreetsqueryrnn(const kdtree &kdt, const kdtreerequestbuffer &buf, const real_1d_array &x, const double r);
570 ae_int_t kdtreequeryaknn(const kdtree &kdt, const real_1d_array &x, const ae_int_t k, const bool selfmatch, const double eps);
571 ae_int_t kdtreequeryaknn(const kdtree &kdt, const real_1d_array &x, const ae_int_t k, const double eps);
622 ae_int_t kdtreetsqueryaknn(const kdtree &kdt, const kdtreerequestbuffer &buf, const real_1d_array &x, const ae_int_t k, const bool selfmatch, const double eps);
623 ae_int_t kdtreetsqueryaknn(const kdtree &kdt, const kdtreerequestbuffer &buf, const real_1d_array &x, const ae_int_t k, const double eps);
660 ae_int_t kdtreequerybox(const kdtree &kdt, const real_1d_array &boxmin, const real_1d_array &boxmax);
703 ae_int_t kdtreetsquerybox(const kdtree &kdt, const kdtreerequestbuffer &buf, const real_1d_array &boxmin, const real_1d_array &boxmax);
887 void kdtreetsqueryresultsx(const kdtree &kdt, const kdtreerequestbuffer &buf, real_2d_array &x);
922 void kdtreetsqueryresultsxy(const kdtree &kdt, const kdtreerequestbuffer &buf, real_2d_array &xy);
962 void kdtreetsqueryresultstags(const kdtree &kdt, const kdtreerequestbuffer &buf, integer_1d_array &tags);
1001 void kdtreetsqueryresultsdistances(const kdtree &kdt, const kdtreerequestbuffer &buf, real_1d_array &r);
1636 double xdebugmaskedbiasedproductsum(const ae_int_t m, const ae_int_t n, const real_2d_array &a, const real_2d_array &b, const boolean_2d_array &c);
void xdebugb1not(ae_vector *a, ae_state *_state)
void xdebugc1appendcopy(complex_1d_array &a)
alglib_impl::kdtree * c_ptr()
double xdebugr1sum(const real_1d_array &a)
void _hqrndstate_destroy(void *_p)
virtual ~kdtree()
void hqrndseed(ae_int_t s1, ae_int_t s2, hqrndstate *state, ae_state *_state)
ae_int_t kdtreequerybox(kdtree *kdt, ae_vector *boxmin, ae_vector *boxmax, ae_state *_state)
void hqrndnormal2(hqrndstate *state, double *x1, double *x2, ae_state *_state)
double hqrndcontinuous(const hqrndstate &state, const real_1d_array &x, const ae_int_t n)
double hqrndexponential(hqrndstate *state, double lambdav, ae_state *_state)
kdtree & operator=(const kdtree &rhs)
Definition: ap.h:1393
void xdebugi1appendcopy(ae_vector *a, ae_state *_state)
_kdtree_owner & operator=(const _kdtree_owner &rhs)
ae_int_t kdtreetsqueryaknn(kdtree *kdt, kdtreerequestbuffer *buf, ae_vector *x, ae_int_t k, ae_bool selfmatch, double eps, ae_state *_state)
void kdtreealloc(ae_serializer *s, kdtree *tree, ae_state *_state)
alglib_impl::xdebugrecord1 * c_ptr()
Definition: ap.h:1254
double hqrndnormal(const hqrndstate &state)
void xdebugb2not(const boolean_2d_array &a)
void _kdtreerequestbuffer_init_copy(void *_dst, void *_src, ae_state *_state)
void kdtreebuildtagged(ae_matrix *xy, ae_vector *tags, ae_int_t n, ae_int_t nx, ae_int_t ny, ae_int_t normtype, kdtree *kdt, ae_state *_state)
ae_int_t xdebugi1sum(ae_vector *a, ae_state *_state)
void kdtreeserialize(ae_serializer *s, kdtree *tree, ae_state *_state)
double hqrnddiscrete(hqrndstate *state, ae_vector *x, ae_int_t n, ae_state *_state)
ae_complex xdebugc2sum(ae_matrix *a, ae_state *_state)
void xdebugi1outeven(const ae_int_t n, integer_1d_array &a)
_hqrndstate_owner()
void xdebugb2not(ae_matrix *a, ae_state *_state)
void xdebugc2outsincos(const ae_int_t m, const ae_int_t n, complex_2d_array &a)
void kdtreetsqueryresultstags(kdtree *kdt, kdtreerequestbuffer *buf, ae_vector *tags, ae_state *_state)
double xdebugr1sum(ae_vector *a, ae_state *_state)
void hqrndseed(const ae_int_t s1, const ae_int_t s2, hqrndstate &state)
void xdebugi1neg(ae_vector *a, ae_state *_state)
double hqrndcontinuous(hqrndstate *state, ae_vector *x, ae_int_t n, ae_state *_state)
void kdtreequeryresultsxyi(kdtree *kdt, ae_matrix *xy, ae_state *_state)
Definition: alglibmisc.h:152
void kdtreetsqueryresultsx(kdtree *kdt, kdtreerequestbuffer *buf, ae_matrix *x, ae_state *_state)
Definition: alglibmisc.h:177
ae_int_t kdtreequeryaknn(const kdtree &kdt, const real_1d_array &x, const ae_int_t k, const bool selfmatch, const double eps)
ae_int_t xdebugb2count(ae_matrix *a, ae_state *_state)
xdebugrecord1 & operator=(const xdebugrecord1 &rhs)
void xdebugb2transpose(ae_matrix *a, ae_state *_state)
Definition: ap.h:993
void kdtreetsqueryresultsxy(kdtree *kdt, kdtreerequestbuffer *buf, ae_matrix *xy, ae_state *_state)
void hqrndunit2(const hqrndstate &state, double &x, double &y)
void kdtreequeryresultstagsi(kdtree *kdt, ae_vector *tags, ae_state *_state)
_xdebugrecord1_owner & operator=(const _xdebugrecord1_owner &rhs)
void xdebugr2transpose(ae_matrix *a, ae_state *_state)
ae_int_t kdtreequeryknn(kdtree *kdt, ae_vector *x, ae_int_t k, ae_bool selfmatch, ae_state *_state)
Definition: alglibmisc.h:106
ae_int_t kdtreequeryrnn(const kdtree &kdt, const real_1d_array &x, const double r, const bool selfmatch)
void kdtreequeryresultsx(const kdtree &kdt, real_2d_array &x)
alglib_impl::kdtreerequestbuffer * p_struct
Definition: alglibmisc.h:108
_xdebugrecord1_owner()
void xdebugi2outsin(ae_int_t m, ae_int_t n, ae_matrix *a, ae_state *_state)
Definition: alglibmisc.h:89
void xdebugi1neg(const integer_1d_array &a)
_kdtree_owner()
void hqrndrandomize(hqrndstate *state, ae_state *_state)
void kdtreeexplorebox(kdtree *kdt, ae_vector *boxmin, ae_vector *boxmax, ae_state *_state)
Definition: ap.h:450
void xdebugb2outsin(const ae_int_t m, const ae_int_t n, boolean_2d_array &a)
Definition: alglibmisc.h:189
double xdebugmaskedbiasedproductsum(ae_int_t m, ae_int_t n, ae_matrix *a, ae_matrix *b, ae_matrix *c, ae_state *_state)
ae_int_t xdebugi2sum(ae_matrix *a, ae_state *_state)
void xdebugb1outeven(const ae_int_t n, boolean_1d_array &a)
ae_int_t hqrnduniformi(hqrndstate *state, ae_int_t n, ae_state *_state)
void xdebugr2neg(ae_matrix *a, ae_state *_state)
ae_int_t kdtreequeryaknn(kdtree *kdt, ae_vector *x, ae_int_t k, ae_bool selfmatch, double eps, ae_state *_state)
Definition: alglibmisc.h:83
void _kdtree_clear(void *_p)
ae_int_t kdtreetsquerybox(const kdtree &kdt, const kdtreerequestbuffer &buf, const real_1d_array &boxmin, const real_1d_array &boxmax)
Definition: ap.h:1333
void xdebugc2transpose(complex_2d_array &a)
void xdebugc2neg(const complex_2d_array &a)
void _hqrndstate_init(void *_p, ae_state *_state)
void kdtreequeryresultsdistances(kdtree *kdt, ae_vector *r, ae_state *_state)
void kdtreeexplorenodetype(kdtree *kdt, ae_int_t node, ae_int_t *nodetype, ae_state *_state)
void xdebugb1appendcopy(ae_vector *a, ae_state *_state)
void kdtreequeryresultstags(const kdtree &kdt, integer_1d_array &tags)
Definition: ap.h:1184
double hqrnduniformr(hqrndstate *state, ae_state *_state)
void xdebugr2outsin(const ae_int_t m, const ae_int_t n, real_2d_array &a)
ae_int_t kdtreetsqueryknn(const kdtree &kdt, const kdtreerequestbuffer &buf, const real_1d_array &x, const ae_int_t k, const bool selfmatch)
void _kdtree_init(void *_p, ae_state *_state)
_kdtreerequestbuffer_owner & operator=(const _kdtreerequestbuffer_owner &rhs)
ae_int_t kdtreetsqueryaknn(const kdtree &kdt, const kdtreerequestbuffer &buf, const real_1d_array &x, const ae_int_t k, const bool selfmatch, const double eps)
void _kdtreerequestbuffer_init(void *_p, ae_state *_state)
void xdebugr1appendcopy(ae_vector *a, ae_state *_state)
void xdebugb2transpose(boolean_2d_array &a)
void kdtreecreaterequestbuffer(kdtree *kdt, kdtreerequestbuffer *buf, ae_state *_state)
void xdebugr1appendcopy(real_1d_array &a)
void _kdtree_destroy(void *_p)
Definition: ap.h:347
void kdtreeunserialize(const std::string &s_in, kdtree &obj)
Definition: alglibinternal.h:31
virtual ~_kdtree_owner()
void _kdtreerequestbuffer_clear(void *_p)
void xdebugc1outeven(ae_int_t n, ae_vector *a, ae_state *_state)
void xdebugi2transpose(integer_2d_array &a)
void kdtreebuildtagged(const real_2d_array &xy, const integer_1d_array &tags, const ae_int_t n, const ae_int_t nx, const ae_int_t ny, const ae_int_t normtype, kdtree &kdt)
virtual ~kdtreerequestbuffer()
Definition: alglibmisc.h:120
alglib_impl::xdebugrecord1 * p_struct
Definition: alglibmisc.h:188
void kdtreecreaterequestbuffer(const kdtree &kdt, kdtreerequestbuffer &buf)
ae_int_t xdebugb1count(ae_vector *a, ae_state *_state)
void kdtreetsqueryresultsx(const kdtree &kdt, const kdtreerequestbuffer &buf, real_2d_array &x)
void _xdebugrecord1_clear(void *_p)
struct alglib_impl::ae_vector ae_vector
void kdtreeunserialize(ae_serializer *s, kdtree *tree, ae_state *_state)
void xdebuginitrecord1(xdebugrecord1 &rec1)
virtual ~_xdebugrecord1_owner()
void kdtreetsqueryresultstags(const kdtree &kdt, const kdtreerequestbuffer &buf, integer_1d_array &tags)
void xdebugc1outeven(const ae_int_t n, complex_1d_array &a)
void xdebuginitrecord1(xdebugrecord1 *rec1, ae_state *_state)
alglib::complex xdebugc2sum(const complex_2d_array &a)
_hqrndstate_owner & operator=(const _hqrndstate_owner &rhs)
Definition: ap.h:1207
Definition: ap.h:1353
void xdebugr1neg(ae_vector *a, ae_state *_state)
ae_int_t xdebugb1count(const boolean_1d_array &a)
kdtree(const kdtree &rhs)
ae_int_t kdtreequeryrnn(kdtree *kdt, ae_vector *x, double r, ae_bool selfmatch, ae_state *_state)
virtual ~_kdtreerequestbuffer_owner()
_kdtreerequestbuffer_owner()
alglib_impl::kdtreerequestbuffer * c_ptr()
ae_int_t kdtreetsqueryrnn(const kdtree &kdt, const kdtreerequestbuffer &buf, const real_1d_array &x, const double r, const bool selfmatch)
ae_int_t hqrnduniformi(const hqrndstate &state, const ae_int_t n)
void xdebugr2neg(const real_2d_array &a)
void xdebugb1appendcopy(boolean_1d_array &a)
double xdebugr2sum(ae_matrix *a, ae_state *_state)
alglib_impl::hqrndstate * c_ptr()
void kdtreequeryresultsdistancesi(const kdtree &kdt, real_1d_array &r)
virtual ~_hqrndstate_owner()
Definition: ap.h:509
kdtreerequestbuffer(const kdtreerequestbuffer &rhs)
void xdebugi1appendcopy(integer_1d_array &a)
void xdebugc1neg(const complex_1d_array &a)
void kdtreequeryresultsxy(kdtree *kdt, ae_matrix *xy, ae_state *_state)
void xdebugr1neg(const real_1d_array &a)
void xdebugi2neg(ae_matrix *a, ae_state *_state)
void _xdebugrecord1_init(void *_p, ae_state *_state)
void _hqrndstate_init_copy(void *_dst, void *_src, ae_state *_state)
ae_int_t kdtreetsquerybox(kdtree *kdt, kdtreerequestbuffer *buf, ae_vector *boxmin, ae_vector *boxmax, ae_state *_state)
void kdtreequeryresultsx(kdtree *kdt, ae_matrix *x, ae_state *_state)
xdebugrecord1(const xdebugrecord1 &rhs)
Definition: alglibmisc.h:51
void _xdebugrecord1_init_copy(void *_dst, void *_src, ae_state *_state)
void kdtreetsqueryresultsdistances(const kdtree &kdt, const kdtreerequestbuffer &buf, real_1d_array &r)
double hqrnduniformr(const hqrndstate &state)
hqrndstate & operator=(const hqrndstate &rhs)
ae_int_t kdtreequeryknn(const kdtree &kdt, const real_1d_array &x, const ae_int_t k, const bool selfmatch)
void xdebugi1outeven(ae_int_t n, ae_vector *a, ae_state *_state)
void _xdebugrecord1_destroy(void *_p)
void hqrndrandomize(hqrndstate &state)
xdebugrecord1()
double hqrndexponential(const hqrndstate &state, const double lambdav)
void kdtreeserialize(kdtree &obj, std::string &s_out)
void xdebugi2outsin(const ae_int_t m, const ae_int_t n, integer_2d_array &a)
virtual ~xdebugrecord1()
void kdtreequeryresultstagsi(const kdtree &kdt, integer_1d_array &tags)
void xdebugb1outeven(ae_int_t n, ae_vector *a, ae_state *_state)
void kdtreeexploresplit(kdtree *kdt, ae_int_t node, ae_int_t *d, double *s, ae_int_t *nodele, ae_int_t *nodege, ae_state *_state)
void xdebugb1not(const boolean_1d_array &a)
Definition: alglibmisc.h:164
void xdebugi2neg(const integer_2d_array &a)
void kdtreeexploreleaf(kdtree *kdt, ae_int_t node, ae_matrix *xy, ae_int_t *k, ae_state *_state)
void _kdtreerequestbuffer_destroy(void *_p)
alglib::complex xdebugc1sum(const complex_1d_array &a)
void _hqrndstate_clear(void *_p)
void kdtreequeryresultstags(kdtree *kdt, ae_vector *tags, ae_state *_state)
ae_int_t xdebugi1sum(const integer_1d_array &a)
double xdebugmaskedbiasedproductsum(const ae_int_t m, const ae_int_t n, const real_2d_array &a, const real_2d_array &b, const boolean_2d_array &c)
ae_int_t xdebugb2count(const boolean_2d_array &a)
hqrndstate()
void xdebugc2neg(ae_matrix *a, ae_state *_state)
Definition: ap.h:469
ae_int_t kdtreetsqueryrnn(kdtree *kdt, kdtreerequestbuffer *buf, ae_vector *x, double r, ae_bool selfmatch, ae_state *_state)
kdtree()
kdtreerequestbuffer()
ae_int_t kdtreetsqueryknn(kdtree *kdt, kdtreerequestbuffer *buf, ae_vector *x, ae_int_t k, ae_bool selfmatch, ae_state *_state)
void xdebugc2outsincos(ae_int_t m, ae_int_t n, ae_matrix *a, ae_state *_state)
Definition: ap.h:198
void kdtreetsqueryresultsxy(const kdtree &kdt, const kdtreerequestbuffer &buf, real_2d_array &xy)
void kdtreequeryresultsdistancesi(kdtree *kdt, ae_vector *r, ae_state *_state)
void _kdtree_init_copy(void *_dst, void *_src, ae_state *_state)
void kdtreequeryresultsxi(const kdtree &kdt, real_2d_array &x)
void xdebugr2outsin(ae_int_t m, ae_int_t n, ae_matrix *a, ae_state *_state)
ae_int_t kdtreequerybox(const kdtree &kdt, const real_1d_array &boxmin, const real_1d_array &boxmax)
double hqrnddiscrete(const hqrndstate &state, const real_1d_array &x, const ae_int_t n)
void xdebugr1outeven(ae_int_t n, ae_vector *a, ae_state *_state)
void xdebugc1appendcopy(ae_vector *a, ae_state *_state)
void hqrndunit2(hqrndstate *state, double *x, double *y, ae_state *_state)
void kdtreequeryresultsdistances(const kdtree &kdt, real_1d_array &r)
Definition: alglibmisc.h:132
void kdtreetsqueryresultsdistances(kdtree *kdt, kdtreerequestbuffer *buf, ae_vector *r, ae_state *_state)
void xdebugi2transpose(ae_matrix *a, ae_state *_state)
Definition: alglibmisc.h:68
double hqrndnormal(hqrndstate *state, ae_state *_state)
void kdtreequeryresultsxi(kdtree *kdt, ae_matrix *x, ae_state *_state)
void xdebugr1outeven(const ae_int_t n, real_1d_array &a)
void xdebugc1neg(ae_vector *a, ae_state *_state)
Definition: ap.h:1231
void kdtreequeryresultsxyi(const kdtree &kdt, real_2d_array &xy)
void xdebugb2outsin(ae_int_t m, ae_int_t n, ae_matrix *a, ae_state *_state)
void kdtreebuild(const real_2d_array &xy, const ae_int_t n, const ae_int_t nx, const ae_int_t ny, const ae_int_t normtype, kdtree &kdt)
void xdebugr2transpose(real_2d_array &a)
Definition: alglibinternal.h:158
hqrndstate(const hqrndstate &rhs)
Definition: ap.h:1373
void kdtreequeryresultsxy(const kdtree &kdt, real_2d_array &xy)
void hqrndnormal2(const hqrndstate &state, double &x1, double &x2)
ae_complex xdebugc1sum(ae_vector *a, ae_state *_state)
void kdtreebuild(ae_matrix *xy, ae_int_t n, ae_int_t nx, ae_int_t ny, ae_int_t normtype, kdtree *kdt, ae_state *_state)
ae_int_t xdebugi2sum(const integer_2d_array &a)
double xdebugr2sum(const real_2d_array &a)
kdtreerequestbuffer & operator=(const kdtreerequestbuffer &rhs)
void xdebugc2transpose(ae_matrix *a, ae_state *_state)
virtual ~hqrndstate()