Algorithm-Statistic
view release on metacpan or search on metacpan
Changes
include/debug.hpp
include/kth_order_statistic.hpp
lib/Algorithm/Statistic.pm
Makefile.PL
MANIFEST This list of files
ppport.h
README.md
Statistic.xs
t/kth_order_statistic.t
t/leaktrace.t
t/median.t
Statistic.xs view on Meta::CPAN
#ifdef __cplusplus
} /* extern "C" */
#endif
#include "ppport.h"
#define NDEBUG
#include <memory>
#include "kth_order_statistic.hpp"
#include "debug.hpp"
/**
* Default comparator for numerics
*/
class PerlDefaultCompare {
public:
virtual ~PerlDefaultCompare() {}
virtual int operator()(SV* const x, SV* const y) const {
dTHX;
include/kth_order_statistic.hpp view on Meta::CPAN
* Author: I. Karbachinsky <igorkarbachinsky@mail.ru> 2014
*/
#include <iostream>
#include <cassert>
#include <stdexcept>
#include <iterator>
#include <functional>
#include "debug.hpp"
namespace algo {
template<class InputIterator, class Compare=std::minus<typename InputIterator::value_type> >
const InputIterator KthOrderStatistic(const InputIterator begin, const InputIterator end, size_t k, const Compare &compare) {
typedef typename std::iterator_traits<InputIterator>::value_type T;
size_t n = std::distance(begin, end);
DEBUG("", std::endl);
dXSTARG|5.006000||p
deb_curcv|||
deb_nocontext|||vn
deb_stack_all|||
deb_stack_n|||
debop||5.005000|
debprofdump||5.005000|
debprof|||
debstackptrs||5.007003|
debstack||5.007003|
debug_start_match|||
deb||5.007003|v
del_sv|||
delete_eval_scope|||
delimcpy||5.004000|
deprecate_old|||
deprecate|||
despatch_signals||5.007001|
destroy_matcher|||
die_nocontext|||vn
die_where|||
free_tied_hv_pool|||
free_tmps|||
gen_constant_list|||
get_arena|||
get_aux_mg|||
get_av|5.006000||p
get_context||5.006000|n
get_cvn_flags||5.009005|
get_cv|5.006000||p
get_db_sub|||
get_debug_opts|||
get_hash_seed|||
get_hv|5.006000||p
get_isa_hash|||
get_mstats|||
get_no_modify|||
get_num|||
get_op_descs||5.005000|
get_op_names||5.005000|
get_opargs|||
get_ppaddr||5.006000|
hv_undef|||
ibcmp_locale||5.004000|
ibcmp_utf8||5.007003|
ibcmp|||
incline|||
incpush_if_exists|||
incpush_use_sep|||
incpush|||
ingroup|||
init_argv_symbols|||
init_debugger|||
init_global_struct|||
init_i18nl10n||5.006000|
init_i18nl14n||5.006000|
init_ids|||
init_interp|||
init_main_stash|||
init_perllib|||
init_postdump_symbols|||
init_predump_symbols|||
init_stacks||5.005000|
require_pv||5.006000|
require_tie_mod|||
restore_magic|||
rninstr|||
rsignal_restore|||
rsignal_save|||
rsignal_state||5.004000|
rsignal||5.004000|
run_body|||
run_user_filter|||
runops_debug||5.005000|
runops_standard||5.005000|
rvpv_dup|||
rxres_free|||
rxres_restore|||
rxres_save|||
safesyscalloc||5.006000|n
safesysfree||5.006000|n
safesysmalloc||5.006000|n
safesysrealloc||5.006000|n
same_dirent|||
too_many_arguments|||
uiv_2buf|||n
unlnk|||
unpack_rec|||
unpack_str||5.007003|
unpackstring||5.008001|
unshare_hek_or_pvn|||
unshare_hek|||
unsharepvn||5.004000|
unwind_handler_stack|||
update_debugger_info|||
upg_version||5.009005|
usage|||
utf16_to_utf8_reversed||5.006001|
utf16_to_utf8||5.006001|
utf8_distance||5.006000|
utf8_hop||5.006000|
utf8_length||5.007001|
utf8_mg_pos_cache_update|||
utf8_to_bytes||5.006001|
utf8_to_uvchr||5.007001|
( run in 2.141 seconds using v1.01-cache-2.11-cpan-49f99fa48dc )