statsdoc.xml 262 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228
  1. <?xml version="1.0" standalone="yes"?>
  2. <library-reference id="statistics_library_reference"><title>Statistics Library Reference</title><header name="boost/accumulators/statistics.hpp">
  3. <para>Includes all of the Statistical Accumulators Library </para></header>
  4. <header name="boost/accumulators/statistics/count.hpp">
  5. <namespace name="boost">
  6. <namespace name="accumulators">
  7. <namespace name="extract">
  8. <data-member name="count"><type><classname>extractor</classname>&lt; <classname>tag::count</classname> &gt; const</type></data-member>
  9. </namespace>
  10. <namespace name="impl">
  11. <struct name="count_impl"><inherit access="public">accumulator_base</inherit><typedef name="result_type"><type>std::size_t</type></typedef>
  12. <method-group name="public member functions">
  13. <method name="operator()"><type>void</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  14. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  15. <method name="serialize"><type>void</type><template>
  16. <template-type-parameter name="Archive"/>
  17. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  18. </method-group>
  19. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  20. </struct>
  21. </namespace>
  22. <namespace name="tag">
  23. <struct name="count"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct></namespace>
  24. </namespace>
  25. </namespace>
  26. </header>
  27. <header name="boost/accumulators/statistics/covariance.hpp">
  28. <namespace name="boost">
  29. <namespace name="accumulators">
  30. <struct-specialization name="as_weighted_feature"><template>
  31. <template-type-parameter name="VariateType"/>
  32. <template-type-parameter name="VariateTag"/>
  33. </template><specialization><template-arg>tag::covariance&lt; VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_covariance</classname>&lt; VariateType, VariateTag &gt;</type></typedef>
  34. </struct-specialization><struct-specialization name="feature_of"><template>
  35. <template-type-parameter name="VariateType"/>
  36. <template-type-parameter name="VariateTag"/>
  37. </template><specialization><template-arg>tag::covariance&lt; VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::abstract_covariance &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  38. <template-type-parameter name="VariateType"/>
  39. <template-type-parameter name="VariateTag"/>
  40. </template><specialization><template-arg>tag::weighted_covariance&lt; VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::covariance&lt; VariateType, VariateTag &gt; &gt;</inherit></struct-specialization><namespace name="extract">
  41. <data-member name="covariance"><type><classname>extractor</classname>&lt; <classname>tag::abstract_covariance</classname> &gt; const</type></data-member>
  42. </namespace>
  43. <namespace name="impl">
  44. </namespace>
  45. <namespace name="tag">
  46. <struct name="abstract_covariance"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct></namespace>
  47. </namespace>
  48. <namespace name="numeric">
  49. <namespace name="functional">
  50. <struct name="outer_product"><template>
  51. <template-type-parameter name="Left"/>
  52. <template-type-parameter name="Right"/>
  53. <template-type-parameter name="LeftTag"><default>typename tag&lt;Left&gt;::type</default></template-type-parameter>
  54. <template-type-parameter name="RightTag"><default>typename tag&lt;Right&gt;::type</default></template-type-parameter>
  55. </template><inherit access="public">boost::numeric::functional::outer_product_base&lt; Left, Right, void &gt;</inherit></struct><struct-specialization name="outer_product"><template>
  56. <template-type-parameter name="Left"/>
  57. <template-type-parameter name="Right"/>
  58. </template><specialization><template-arg>Left</template-arg><template-arg>Right</template-arg><template-arg>std_vector_tag</template-arg><template-arg>std_vector_tag</template-arg></specialization><typedef name="first_argument_type"><type>Left</type></typedef>
  59. <typedef name="second_argument_type"><type>Right</type></typedef>
  60. <typedef name="result_type"><type>ublas::matrix&lt; typename functional::multiplies&lt; typename Left::value_type, typename Right::value_type &gt;::result_type &gt;</type></typedef>
  61. <method-group name="public member functions">
  62. <method name="operator()" cv="const"><type>result_type</type><parameter name="left"><paramtype>Left &amp;</paramtype></parameter><parameter name="right"><paramtype>Right &amp;</paramtype></parameter></method>
  63. </method-group>
  64. </struct-specialization><struct name="outer_product_base"><template>
  65. <template-type-parameter name="Left"/>
  66. <template-type-parameter name="Right"/>
  67. <template-type-parameter name="EnableIf"><default>void</default></template-type-parameter>
  68. </template><inherit access="public">functional::multiplies&lt; Left, Right &gt;</inherit></struct></namespace>
  69. <namespace name="op">
  70. <struct name="outer_product"/></namespace>
  71. </namespace>
  72. </namespace>
  73. </header>
  74. <header name="boost/accumulators/statistics/density.hpp">
  75. <namespace name="boost">
  76. <namespace name="accumulators">
  77. <struct-specialization name="as_weighted_feature"><template>
  78. </template><specialization><template-arg>tag::density</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_density</classname></type></typedef>
  79. </struct-specialization><struct-specialization name="feature_of"><template>
  80. </template><specialization><template-arg>tag::weighted_density</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::density &gt;</inherit></struct-specialization><namespace name="extract">
  81. <data-member name="density"><type><classname>extractor</classname>&lt; <classname>tag::density</classname> &gt; const</type></data-member>
  82. </namespace>
  83. <namespace name="impl">
  84. </namespace>
  85. <namespace name="tag">
  86. <struct name="density"><inherit access="public">boost::accumulators::depends_on&lt; count, min, max &gt;</inherit><inherit access="public">density_cache_size</inherit><inherit access="public">density_num_bins</inherit><data-member name="cache_size" specifiers="static"><type>boost::parameter::keyword&lt; density_cache_size &gt; const</type><description><para>tag::density::cache_size named parameter tag::density::num_bins named parameter </para></description></data-member>
  87. <data-member name="num_bins" specifiers="static"><type>boost::parameter::keyword&lt; density_num_bins &gt; const</type></data-member>
  88. </struct></namespace>
  89. </namespace>
  90. </namespace>
  91. </header>
  92. <header name="boost/accumulators/statistics/error_of.hpp">
  93. <namespace name="boost">
  94. <namespace name="accumulators">
  95. <struct-specialization name="as_feature"><template>
  96. <template-type-parameter name="Feature"/>
  97. </template><specialization><template-arg>tag::error_of&lt; Feature &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::error_of</classname>&lt; typename <classname>as_feature</classname>&lt; Feature &gt;::type &gt;</type></typedef>
  98. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  99. <template-type-parameter name="Feature"/>
  100. </template><specialization><template-arg>tag::error_of&lt; Feature &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::error_of</classname>&lt; typename <classname>as_weighted_feature</classname>&lt; Feature &gt;::type &gt;</type></typedef>
  101. </struct-specialization><namespace name="extract">
  102. </namespace>
  103. <namespace name="impl">
  104. </namespace>
  105. <namespace name="tag">
  106. </namespace>
  107. </namespace>
  108. </namespace>
  109. </header>
  110. <header name="boost/accumulators/statistics/error_of_mean.hpp">
  111. <namespace name="boost">
  112. <namespace name="accumulators">
  113. <namespace name="impl">
  114. </namespace>
  115. <namespace name="tag">
  116. <struct-specialization name="error_of"><template>
  117. </template><specialization><template-arg>immediate_mean</template-arg></specialization><inherit access="public">boost::accumulators::depends_on&lt; variance, count &gt;</inherit></struct-specialization><struct-specialization name="error_of"><template>
  118. </template><specialization><template-arg>mean</template-arg></specialization><inherit access="public">boost::accumulators::depends_on&lt; lazy_variance, count &gt;</inherit></struct-specialization></namespace>
  119. </namespace>
  120. </namespace>
  121. </header>
  122. <header name="boost/accumulators/statistics/extended_p_square.hpp">
  123. <namespace name="boost">
  124. <namespace name="accumulators">
  125. <struct-specialization name="as_weighted_feature"><template>
  126. </template><specialization><template-arg>tag::extended_p_square</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_extended_p_square</classname></type></typedef>
  127. </struct-specialization><struct-specialization name="feature_of"><template>
  128. </template><specialization><template-arg>tag::weighted_extended_p_square</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::extended_p_square &gt;</inherit></struct-specialization><namespace name="extract">
  129. <data-member name="extended_p_square"><type><classname>extractor</classname>&lt; <classname>tag::extended_p_square</classname> &gt; const</type></data-member>
  130. </namespace>
  131. <namespace name="impl">
  132. </namespace>
  133. <namespace name="tag">
  134. <struct name="extended_p_square"><inherit access="public">boost::accumulators::depends_on&lt; count &gt;</inherit><inherit access="public">extended_p_square_probabilities</inherit><typedef name="impl"><type><classname>accumulators::impl::extended_p_square_impl</classname>&lt; mpl::_1 &gt;</type></typedef>
  135. <data-member name="probabilities" specifiers="static"><type>boost::parameter::keyword&lt; tag::probabilities &gt; const</type><purpose>tag::extended_p_square::probabilities named parameter </purpose></data-member>
  136. </struct></namespace>
  137. </namespace>
  138. </namespace>
  139. </header>
  140. <header name="boost/accumulators/statistics/extended_p_square_quantile.hpp">
  141. <namespace name="boost">
  142. <namespace name="accumulators">
  143. <struct-specialization name="as_feature"><template>
  144. </template><specialization><template-arg>tag::extended_p_square_quantile(linear)</template-arg></specialization><typedef name="type"><type><classname>tag::extended_p_square_quantile</classname></type></typedef>
  145. </struct-specialization><struct-specialization name="as_feature"><template>
  146. </template><specialization><template-arg>tag::extended_p_square_quantile(quadratic)</template-arg></specialization><typedef name="type"><type><classname>tag::extended_p_square_quantile_quadratic</classname></type></typedef>
  147. </struct-specialization><struct-specialization name="as_feature"><template>
  148. </template><specialization><template-arg>tag::weighted_extended_p_square_quantile(linear)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_extended_p_square_quantile</classname></type></typedef>
  149. </struct-specialization><struct-specialization name="as_feature"><template>
  150. </template><specialization><template-arg>tag::weighted_extended_p_square_quantile(quadratic)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_extended_p_square_quantile_quadratic</classname></type></typedef>
  151. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  152. </template><specialization><template-arg>tag::extended_p_square_quantile</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_extended_p_square_quantile</classname></type></typedef>
  153. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  154. </template><specialization><template-arg>tag::extended_p_square_quantile_quadratic</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_extended_p_square_quantile_quadratic</classname></type></typedef>
  155. </struct-specialization><struct-specialization name="feature_of"><template>
  156. </template><specialization><template-arg>tag::extended_p_square_quantile</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::quantile &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  157. </template><specialization><template-arg>tag::extended_p_square_quantile_quadratic</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::quantile &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  158. </template><specialization><template-arg>tag::weighted_extended_p_square_quantile</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::extended_p_square_quantile &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  159. </template><specialization><template-arg>tag::weighted_extended_p_square_quantile_quadratic</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::extended_p_square_quantile_quadratic &gt;</inherit></struct-specialization><namespace name="extract">
  160. <data-member name="extended_p_square_quantile"><type><classname>extractor</classname>&lt; <classname>tag::extended_p_square_quantile</classname> &gt; const</type></data-member>
  161. <data-member name="extended_p_square_quantile_quadratic"><type><classname>extractor</classname>&lt; <classname>tag::extended_p_square_quantile_quadratic</classname> &gt; const</type></data-member>
  162. <data-member name="weighted_extended_p_square_quantile"><type><classname>extractor</classname>&lt; <classname>tag::weighted_extended_p_square_quantile</classname> &gt; const</type></data-member>
  163. <data-member name="weighted_extended_p_square_quantile_quadratic"><type><classname>extractor</classname>&lt; <classname>tag::weighted_extended_p_square_quantile_quadratic</classname> &gt; const</type></data-member>
  164. </namespace>
  165. <namespace name="impl">
  166. </namespace>
  167. <namespace name="tag">
  168. <struct name="extended_p_square_quantile"><inherit access="public">boost::accumulators::depends_on&lt; extended_p_square &gt;</inherit><typedef name="impl"><type><classname>accumulators::impl::extended_p_square_quantile_impl</classname>&lt; mpl::_1, <classname>unweighted</classname>, <classname>linear</classname> &gt;</type></typedef>
  169. </struct><struct name="extended_p_square_quantile_quadratic"><inherit access="public">boost::accumulators::depends_on&lt; extended_p_square &gt;</inherit><typedef name="impl"><type><classname>accumulators::impl::extended_p_square_quantile_impl</classname>&lt; mpl::_1, <classname>unweighted</classname>, <classname>quadratic</classname> &gt;</type></typedef>
  170. </struct><struct name="weighted_extended_p_square_quantile"><inherit access="public">boost::accumulators::depends_on&lt; weighted_extended_p_square &gt;</inherit><typedef name="impl"><type><classname>accumulators::impl::extended_p_square_quantile_impl</classname>&lt; mpl::_1, <classname>weighted</classname>, <classname>linear</classname> &gt;</type></typedef>
  171. </struct><struct name="weighted_extended_p_square_quantile_quadratic"><inherit access="public">boost::accumulators::depends_on&lt; weighted_extended_p_square &gt;</inherit><typedef name="impl"><type><classname>accumulators::impl::extended_p_square_quantile_impl</classname>&lt; mpl::_1, <classname>weighted</classname>, <classname>quadratic</classname> &gt;</type></typedef>
  172. </struct></namespace>
  173. </namespace>
  174. </namespace>
  175. </header>
  176. <header name="boost/accumulators/statistics/kurtosis.hpp">
  177. <namespace name="boost">
  178. <namespace name="accumulators">
  179. <struct-specialization name="as_weighted_feature"><template>
  180. </template><specialization><template-arg>tag::kurtosis</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_kurtosis</classname></type></typedef>
  181. </struct-specialization><struct-specialization name="feature_of"><template>
  182. </template><specialization><template-arg>tag::weighted_kurtosis</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::kurtosis &gt;</inherit></struct-specialization><namespace name="extract">
  183. <data-member name="kurtosis"><type><classname>extractor</classname>&lt; <classname>tag::kurtosis</classname> &gt; const</type></data-member>
  184. </namespace>
  185. <namespace name="impl">
  186. </namespace>
  187. <namespace name="tag">
  188. <struct name="kurtosis"><inherit access="public">boost::accumulators::depends_on&lt; mean, moment&lt; 2 &gt;, moment&lt; 3 &gt;, moment&lt; 4 &gt; &gt;</inherit></struct></namespace>
  189. </namespace>
  190. </namespace>
  191. </header>
  192. <header name="boost/accumulators/statistics/max.hpp">
  193. <namespace name="boost">
  194. <namespace name="accumulators">
  195. <namespace name="extract">
  196. <data-member name="max"><type><classname>extractor</classname>&lt; <classname>tag::max</classname> &gt; const</type></data-member>
  197. </namespace>
  198. <namespace name="impl">
  199. </namespace>
  200. <namespace name="tag">
  201. <struct name="max"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct></namespace>
  202. </namespace>
  203. </namespace>
  204. </header>
  205. <header name="boost/accumulators/statistics/mean.hpp">
  206. <namespace name="boost">
  207. <namespace name="accumulators">
  208. <struct-specialization name="as_feature"><template>
  209. </template><specialization><template-arg>tag::mean(immediate)</template-arg></specialization><typedef name="type"><type><classname>tag::immediate_mean</classname></type></typedef>
  210. </struct-specialization><struct-specialization name="as_feature"><template>
  211. </template><specialization><template-arg>tag::mean(lazy)</template-arg></specialization><typedef name="type"><type><classname>tag::mean</classname></type></typedef>
  212. </struct-specialization><struct-specialization name="as_feature"><template>
  213. <template-type-parameter name="VariateType"/>
  214. <template-type-parameter name="VariateTag"/>
  215. </template><specialization><template-arg>tag::mean_of_variates&lt; VariateType</template-arg><template-arg>VariateTag &gt;(immediate)</template-arg></specialization><typedef name="type"><type><classname>tag::immediate_mean_of_variates</classname>&lt; VariateType, VariateTag &gt;</type></typedef>
  216. </struct-specialization><struct-specialization name="as_feature"><template>
  217. <template-type-parameter name="VariateType"/>
  218. <template-type-parameter name="VariateTag"/>
  219. </template><specialization><template-arg>tag::mean_of_variates&lt; VariateType</template-arg><template-arg>VariateTag &gt;(lazy)</template-arg></specialization><typedef name="type"><type><classname>tag::mean_of_variates</classname>&lt; VariateType, VariateTag &gt;</type></typedef>
  220. </struct-specialization><struct-specialization name="as_feature"><template>
  221. </template><specialization><template-arg>tag::mean_of_weights(immediate)</template-arg></specialization><typedef name="type"><type><classname>tag::immediate_mean_of_weights</classname></type></typedef>
  222. </struct-specialization><struct-specialization name="as_feature"><template>
  223. </template><specialization><template-arg>tag::mean_of_weights(lazy)</template-arg></specialization><typedef name="type"><type><classname>tag::mean_of_weights</classname></type></typedef>
  224. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  225. </template><specialization><template-arg>tag::immediate_mean</template-arg></specialization><typedef name="type"><type><classname>tag::immediate_weighted_mean</classname></type></typedef>
  226. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  227. <template-type-parameter name="VariateType"/>
  228. <template-type-parameter name="VariateTag"/>
  229. </template><specialization><template-arg>tag::immediate_mean_of_variates&lt; VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::immediate_weighted_mean_of_variates</classname>&lt; VariateType, VariateTag &gt;</type></typedef>
  230. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  231. </template><specialization><template-arg>tag::mean</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_mean</classname></type></typedef>
  232. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  233. <template-type-parameter name="VariateType"/>
  234. <template-type-parameter name="VariateTag"/>
  235. </template><specialization><template-arg>tag::mean_of_variates&lt; VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_mean_of_variates</classname>&lt; VariateType, VariateTag &gt;</type></typedef>
  236. </struct-specialization><struct-specialization name="feature_of"><template>
  237. </template><specialization><template-arg>tag::immediate_mean</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::mean &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  238. <template-type-parameter name="VariateType"/>
  239. <template-type-parameter name="VariateTag"/>
  240. </template><specialization><template-arg>tag::immediate_mean_of_variates&lt; VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::mean_of_variates&lt; VariateType, VariateTag &gt; &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  241. </template><specialization><template-arg>tag::immediate_mean_of_weights</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::mean_of_weights &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  242. </template><specialization><template-arg>tag::immediate_weighted_mean</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::immediate_mean &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  243. <template-type-parameter name="VariateType"/>
  244. <template-type-parameter name="VariateTag"/>
  245. </template><specialization><template-arg>tag::immediate_weighted_mean_of_variates&lt; VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::immediate_mean_of_variates&lt; VariateType, VariateTag &gt; &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  246. </template><specialization><template-arg>tag::weighted_mean</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::mean &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  247. <template-type-parameter name="VariateType"/>
  248. <template-type-parameter name="VariateTag"/>
  249. </template><specialization><template-arg>tag::weighted_mean_of_variates&lt; VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::mean_of_variates&lt; VariateType, VariateTag &gt; &gt;</inherit></struct-specialization><namespace name="extract">
  250. <data-member name="mean"><type><classname>extractor</classname>&lt; <classname>tag::mean</classname> &gt; const</type></data-member>
  251. <data-member name="mean_of_weights"><type><classname>extractor</classname>&lt; <classname>tag::mean_of_weights</classname> &gt; const</type></data-member>
  252. </namespace>
  253. <namespace name="impl">
  254. </namespace>
  255. <namespace name="tag">
  256. <struct name="immediate_mean"><inherit access="public">boost::accumulators::depends_on&lt; count &gt;</inherit></struct><struct name="immediate_mean_of_weights"><inherit access="public">boost::accumulators::depends_on&lt; count &gt;</inherit><typedef name="is_weight_accumulator"><type>mpl::true_</type></typedef>
  257. </struct><struct name="mean"><inherit access="public">boost::accumulators::depends_on&lt; count, sum &gt;</inherit></struct><struct name="mean_of_weights"><inherit access="public">boost::accumulators::depends_on&lt; count, sum_of_weights &gt;</inherit><typedef name="is_weight_accumulator"><type>mpl::true_</type></typedef>
  258. </struct></namespace>
  259. </namespace>
  260. </namespace>
  261. </header>
  262. <header name="boost/accumulators/statistics/median.hpp">
  263. <namespace name="boost">
  264. <namespace name="accumulators">
  265. <struct-specialization name="as_feature"><template>
  266. </template><specialization><template-arg>tag::median(with_density)</template-arg></specialization><typedef name="type"><type><classname>tag::with_density_median</classname></type></typedef>
  267. </struct-specialization><struct-specialization name="as_feature"><template>
  268. </template><specialization><template-arg>tag::median(with_p_square_cumulative_distribution)</template-arg></specialization><typedef name="type"><type><classname>tag::with_p_square_cumulative_distribution_median</classname></type></typedef>
  269. </struct-specialization><struct-specialization name="as_feature"><template>
  270. </template><specialization><template-arg>tag::median(with_p_square_quantile)</template-arg></specialization><typedef name="type"><type><classname>tag::median</classname></type></typedef>
  271. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  272. </template><specialization><template-arg>tag::median</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_median</classname></type></typedef>
  273. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  274. </template><specialization><template-arg>tag::with_density_median</template-arg></specialization><typedef name="type"><type><classname>tag::with_density_weighted_median</classname></type></typedef>
  275. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  276. </template><specialization><template-arg>tag::with_p_square_cumulative_distribution_median</template-arg></specialization><typedef name="type"><type><classname>tag::with_p_square_cumulative_distribution_weighted_median</classname></type></typedef>
  277. </struct-specialization><struct-specialization name="feature_of"><template>
  278. </template><specialization><template-arg>tag::weighted_median</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::median &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  279. </template><specialization><template-arg>tag::with_density_median</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::median &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  280. </template><specialization><template-arg>tag::with_density_weighted_median</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::with_density_median &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  281. </template><specialization><template-arg>tag::with_p_square_cumulative_distribution_median</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::median &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  282. </template><specialization><template-arg>tag::with_p_square_cumulative_distribution_weighted_median</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::with_p_square_cumulative_distribution_median &gt;</inherit></struct-specialization><namespace name="extract">
  283. <data-member name="median"><type><classname>extractor</classname>&lt; <classname>tag::median</classname> &gt; const</type></data-member>
  284. <data-member name="with_density_median"><type><classname>extractor</classname>&lt; <classname>tag::with_density_median</classname> &gt; const</type></data-member>
  285. <data-member name="with_p_square_cumulative_distribution_median"><type><classname>extractor</classname>&lt; <classname>tag::with_p_square_cumulative_distribution_median</classname> &gt; const</type></data-member>
  286. </namespace>
  287. <namespace name="impl">
  288. </namespace>
  289. <namespace name="tag">
  290. <struct name="median"><inherit access="public">boost::accumulators::depends_on&lt; p_square_quantile_for_median &gt;</inherit></struct><struct name="with_density_median"><inherit access="public">boost::accumulators::depends_on&lt; count, density &gt;</inherit></struct><struct name="with_p_square_cumulative_distribution_median"><inherit access="public">boost::accumulators::depends_on&lt; p_square_cumulative_distribution &gt;</inherit></struct></namespace>
  291. </namespace>
  292. </namespace>
  293. </header>
  294. <header name="boost/accumulators/statistics/min.hpp">
  295. <namespace name="boost">
  296. <namespace name="accumulators">
  297. <namespace name="extract">
  298. <data-member name="min"><type><classname>extractor</classname>&lt; <classname>tag::min</classname> &gt; const</type></data-member>
  299. </namespace>
  300. <namespace name="impl">
  301. </namespace>
  302. <namespace name="tag">
  303. <struct name="min"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct></namespace>
  304. </namespace>
  305. </namespace>
  306. </header>
  307. <header name="boost/accumulators/statistics/moment.hpp">
  308. <namespace name="boost">
  309. <namespace name="accumulators">
  310. <struct-specialization name="as_weighted_feature"><template>
  311. <template-nontype-parameter name="N"><type>int</type></template-nontype-parameter>
  312. </template><specialization><template-arg>tag::moment&lt; N &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_moment</classname>&lt; N &gt;</type></typedef>
  313. </struct-specialization><struct-specialization name="feature_of"><template>
  314. <template-nontype-parameter name="N"><type>int</type></template-nontype-parameter>
  315. </template><specialization><template-arg>tag::weighted_moment&lt; N &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::moment&lt; N &gt; &gt;</inherit></struct-specialization><namespace name="extract">
  316. </namespace>
  317. <namespace name="impl">
  318. </namespace>
  319. <namespace name="tag">
  320. </namespace>
  321. </namespace>
  322. <namespace name="numeric">
  323. </namespace>
  324. </namespace>
  325. </header>
  326. <header name="boost/accumulators/statistics/p_square_cumul_dist.hpp">
  327. <namespace name="boost">
  328. <namespace name="accumulators">
  329. <struct-specialization name="as_weighted_feature"><template>
  330. </template><specialization><template-arg>tag::p_square_cumulative_distribution</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_p_square_cumulative_distribution</classname></type></typedef>
  331. </struct-specialization><struct-specialization name="feature_of"><template>
  332. </template><specialization><template-arg>tag::weighted_p_square_cumulative_distribution</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::p_square_cumulative_distribution &gt;</inherit></struct-specialization><namespace name="extract">
  333. <data-member name="p_square_cumulative_distribution"><type><classname>extractor</classname>&lt; <classname>tag::p_square_cumulative_distribution</classname> &gt; const</type></data-member>
  334. </namespace>
  335. <namespace name="impl">
  336. </namespace>
  337. <namespace name="tag">
  338. <struct name="p_square_cumulative_distribution"><inherit access="public">boost::accumulators::depends_on&lt; count &gt;</inherit><inherit access="public">p_square_cumulative_distribution_num_cells</inherit></struct></namespace>
  339. </namespace>
  340. </namespace>
  341. </header>
  342. <header name="boost/accumulators/statistics/p_square_cumulative_distribution.hpp">
  343. </header>
  344. <header name="boost/accumulators/statistics/p_square_quantile.hpp">
  345. <namespace name="boost">
  346. <namespace name="accumulators">
  347. <struct-specialization name="as_weighted_feature"><template>
  348. </template><specialization><template-arg>tag::p_square_quantile</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_p_square_quantile</classname></type></typedef>
  349. </struct-specialization><struct-specialization name="feature_of"><template>
  350. </template><specialization><template-arg>tag::weighted_p_square_quantile</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::p_square_quantile &gt;</inherit></struct-specialization><namespace name="extract">
  351. <data-member name="p_square_quantile"><type><classname>extractor</classname>&lt; <classname>tag::p_square_quantile</classname> &gt; const</type></data-member>
  352. <data-member name="p_square_quantile_for_median"><type><classname>extractor</classname>&lt; <classname>tag::p_square_quantile_for_median</classname> &gt; const</type></data-member>
  353. </namespace>
  354. <namespace name="impl">
  355. </namespace>
  356. <namespace name="tag">
  357. <struct name="p_square_quantile"><inherit access="public">boost::accumulators::depends_on&lt; count &gt;</inherit></struct><struct name="p_square_quantile_for_median"><inherit access="public">boost::accumulators::depends_on&lt; count &gt;</inherit></struct></namespace>
  358. </namespace>
  359. </namespace>
  360. </header>
  361. <header name="boost/accumulators/statistics/peaks_over_threshold.hpp">
  362. <namespace name="boost">
  363. <namespace name="accumulators">
  364. <struct-specialization name="as_feature"><template>
  365. <template-type-parameter name="LeftRight"/>
  366. </template><specialization><template-arg>tag::peaks_over_threshold&lt; LeftRight &gt;(with_threshold_probability)</template-arg></specialization><typedef name="type"><type><classname>tag::peaks_over_threshold_prob</classname>&lt; LeftRight &gt;</type></typedef>
  367. </struct-specialization><struct-specialization name="as_feature"><template>
  368. <template-type-parameter name="LeftRight"/>
  369. </template><specialization><template-arg>tag::peaks_over_threshold&lt; LeftRight &gt;(with_threshold_value)</template-arg></specialization><typedef name="type"><type><classname>tag::peaks_over_threshold</classname>&lt; LeftRight &gt;</type></typedef>
  370. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  371. <template-type-parameter name="LeftRight"/>
  372. </template><specialization><template-arg>tag::peaks_over_threshold&lt; LeftRight &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_peaks_over_threshold</classname>&lt; LeftRight &gt;</type></typedef>
  373. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  374. <template-type-parameter name="LeftRight"/>
  375. </template><specialization><template-arg>tag::peaks_over_threshold_prob&lt; LeftRight &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_peaks_over_threshold_prob</classname>&lt; LeftRight &gt;</type></typedef>
  376. </struct-specialization><struct-specialization name="feature_of"><template>
  377. <template-type-parameter name="LeftRight"/>
  378. </template><specialization><template-arg>tag::peaks_over_threshold&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::abstract_peaks_over_threshold &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  379. <template-type-parameter name="LeftRight"/>
  380. </template><specialization><template-arg>tag::peaks_over_threshold_prob&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::abstract_peaks_over_threshold &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  381. <template-type-parameter name="LeftRight"/>
  382. </template><specialization><template-arg>tag::weighted_peaks_over_threshold&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::peaks_over_threshold&lt; LeftRight &gt; &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  383. <template-type-parameter name="LeftRight"/>
  384. </template><specialization><template-arg>tag::weighted_peaks_over_threshold_prob&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::peaks_over_threshold_prob&lt; LeftRight &gt; &gt;</inherit></struct-specialization><namespace name="extract">
  385. <data-member name="peaks_over_threshold"><type><classname>extractor</classname>&lt; <classname>tag::abstract_peaks_over_threshold</classname> &gt; const</type></data-member>
  386. </namespace>
  387. <namespace name="impl">
  388. <struct name="peaks_over_threshold_impl"><template>
  389. <template-type-parameter name="Sample"/>
  390. <template-type-parameter name="LeftRight"/>
  391. </template><inherit access="public">accumulator_base</inherit><purpose>Peaks over Threshold Method for Quantile and Tail Mean Estimation. </purpose><description><para>According to the theorem of Pickands-Balkema-de Haan, the distribution function <inlineequation><alt>$F_u(x)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_90.png"/></imageobject><textobject role="tex"><phrase>$F_u(x)$</phrase></textobject></inlinemediaobject></inlineequation> of the excesses <inlineequation><alt>$x$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_91.png"/></imageobject><textobject role="tex"><phrase>$x$</phrase></textobject></inlinemediaobject></inlineequation> over some sufficiently high threshold <inlineequation><alt>$u$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_92.png"/></imageobject><textobject role="tex"><phrase>$u$</phrase></textobject></inlinemediaobject></inlineequation> of a distribution function <inlineequation><alt>$F(x)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_93.png"/></imageobject><textobject role="tex"><phrase>$F(x)$</phrase></textobject></inlinemediaobject></inlineequation> may be approximated by a generalized Pareto distribution <equation><title/><alt>\[ G_{\xi,\beta}(x) = \left\{ \begin{array}{ll} \beta^{-1}\left(1+\frac{\xi x}{\beta}\right)^{-1/\xi-1} &amp; \textrm{if }\xi\neq0\\ \beta^{-1}\exp\left(-\frac{x}{\beta}\right) &amp; \textrm{if }\xi=0, \end{array} \right. \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_94.png"/></imageobject><textobject role="tex"><phrase>\[ G_{\xi,\beta}(x) = \left\{ \begin{array}{ll} \beta^{-1}\left(1+\frac{\xi x}{\beta}\right)^{-1/\xi-1} &amp; \textrm{if }\xi\neq0\\ \beta^{-1}\exp\left(-\frac{x}{\beta}\right) &amp; \textrm{if }\xi=0, \end{array} \right. \]</phrase></textobject></mediaobject></equation> with suitable parameters <inlineequation><alt>$\xi$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_88.png"/></imageobject><textobject role="tex"><phrase>$\xi$</phrase></textobject></inlinemediaobject></inlineequation> and <inlineequation><alt>$\beta$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_95.png"/></imageobject><textobject role="tex"><phrase>$\beta$</phrase></textobject></inlinemediaobject></inlineequation> that can be estimated, e.g., with the method of moments, cf. Hosking and Wallis (1987), <equation><title/><alt>\[ \begin{array}{lll} \hat{\xi} &amp; = &amp; \frac{1}{2}\left[1-\frac{(\hat{\mu}-u)^2}{\hat{\sigma}^2}\right]\\ \hat{\beta} &amp; = &amp; \frac{\hat{\mu}-u}{2}\left[\frac{(\hat{\mu}-u)^2}{\hat{\sigma}^2}+1\right], \end{array} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_96.png"/></imageobject><textobject role="tex"><phrase>\[ \begin{array}{lll} \hat{\xi} &amp; = &amp; \frac{1}{2}\left[1-\frac{(\hat{\mu}-u)^2}{\hat{\sigma}^2}\right]\\ \hat{\beta} &amp; = &amp; \frac{\hat{\mu}-u}{2}\left[\frac{(\hat{\mu}-u)^2}{\hat{\sigma}^2}+1\right], \end{array} \]</phrase></textobject></mediaobject></equation> <inlineequation><alt>$\hat{\mu}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_97.png"/></imageobject><textobject role="tex"><phrase>$\hat{\mu}$</phrase></textobject></inlinemediaobject></inlineequation> and <inlineequation><alt>$\hat{\sigma}^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_98.png"/></imageobject><textobject role="tex"><phrase>$\hat{\sigma}^2$</phrase></textobject></inlinemediaobject></inlineequation> being the empirical mean and variance of the samples over the threshold <inlineequation><alt>$u$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_92.png"/></imageobject><textobject role="tex"><phrase>$u$</phrase></textobject></inlinemediaobject></inlineequation>. Equivalently, the distribution function <inlineequation><alt>$F_u(x-u)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_99.png"/></imageobject><textobject role="tex"><phrase>$F_u(x-u)$</phrase></textobject></inlinemediaobject></inlineequation> of the exceedances <inlineequation><alt>$x-u$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_100.png"/></imageobject><textobject role="tex"><phrase>$x-u$</phrase></textobject></inlinemediaobject></inlineequation> can be approximated by <inlineequation><alt>$G_{\xi,\beta}(x-u)=G_{\xi,\beta,u}(x)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_101.png"/></imageobject><textobject role="tex"><phrase>$G_{\xi,\beta}(x-u)=G_{\xi,\beta,u}(x)$</phrase></textobject></inlinemediaobject></inlineequation>. Since for <inlineequation><alt>$x\geq u$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_102.png"/></imageobject><textobject role="tex"><phrase>$x\geq u$</phrase></textobject></inlinemediaobject></inlineequation> the distribution function <inlineequation><alt>$F(x)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_93.png"/></imageobject><textobject role="tex"><phrase>$F(x)$</phrase></textobject></inlinemediaobject></inlineequation> can be written as <equation><title/><alt>\[ F(x) = [1 - \P(X \leq u)]F_u(x - u) + \P(X \leq u) \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_103.png"/></imageobject><textobject role="tex"><phrase>\[ F(x) = [1 - \P(X \leq u)]F_u(x - u) + \P(X \leq u) \]</phrase></textobject></mediaobject></equation> and the probability <inlineequation><alt>$\P(X \leq u)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_104.png"/></imageobject><textobject role="tex"><phrase>$\P(X \leq u)$</phrase></textobject></inlinemediaobject></inlineequation> can be approximated by the empirical distribution function <inlineequation><alt>$F_n(u)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_105.png"/></imageobject><textobject role="tex"><phrase>$F_n(u)$</phrase></textobject></inlinemediaobject></inlineequation> evaluated at <inlineequation><alt>$u$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_92.png"/></imageobject><textobject role="tex"><phrase>$u$</phrase></textobject></inlinemediaobject></inlineequation>, an estimator of <inlineequation><alt>$F(x)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_93.png"/></imageobject><textobject role="tex"><phrase>$F(x)$</phrase></textobject></inlinemediaobject></inlineequation> is given by <equation><title/><alt>\[ \widehat{F}(x) = [1 - F_n(u)]G_{\xi,\beta,u}(x) + F_n(u). \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_106.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{F}(x) = [1 - F_n(u)]G_{\xi,\beta,u}(x) + F_n(u). \]</phrase></textobject></mediaobject></equation> It can be shown that <inlineequation><alt>$\widehat{F}(x)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_107.png"/></imageobject><textobject role="tex"><phrase>$\widehat{F}(x)$</phrase></textobject></inlinemediaobject></inlineequation> is a generalized Pareto distribution <inlineequation><alt>$G_{\xi,\bar{\beta},\bar{u}}(x)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_108.png"/></imageobject><textobject role="tex"><phrase>$G_{\xi,\bar{\beta},\bar{u}}(x)$</phrase></textobject></inlinemediaobject></inlineequation> with <inlineequation><alt>$\bar{\beta}=\beta[1-F_n(u)]^{\xi}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_109.png"/></imageobject><textobject role="tex"><phrase>$\bar{\beta}=\beta[1-F_n(u)]^{\xi}$</phrase></textobject></inlinemediaobject></inlineequation> and <inlineequation><alt>$\bar{u}=u-\bar{\beta}\left\{[1-F_n(u)]^{-\xi}-1\right\}/\xi$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_110.png"/></imageobject><textobject role="tex"><phrase>$\bar{u}=u-\bar{\beta}\left\{[1-F_n(u)]^{-\xi}-1\right\}/\xi$</phrase></textobject></inlinemediaobject></inlineequation>. By inverting <inlineequation><alt>$\widehat{F}(x)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_107.png"/></imageobject><textobject role="tex"><phrase>$\widehat{F}(x)$</phrase></textobject></inlinemediaobject></inlineequation>, one obtains an estimator for the <inlineequation><alt>$\alpha$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_20.png"/></imageobject><textobject role="tex"><phrase>$\alpha$</phrase></textobject></inlinemediaobject></inlineequation>-quantile, <equation><title/><alt>\[ \hat{q}_{\alpha} = \bar{u} + \frac{\bar{\beta}}{\xi}\left[(1-\alpha)^{-\xi}-1\right], \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_111.png"/></imageobject><textobject role="tex"><phrase>\[ \hat{q}_{\alpha} = \bar{u} + \frac{\bar{\beta}}{\xi}\left[(1-\alpha)^{-\xi}-1\right], \]</phrase></textobject></mediaobject></equation> and similarly an estimator for the (coherent) tail mean, <equation><title/><alt>\[ \widehat{CTM}_{\alpha} = \hat{q}_{\alpha} - \frac{\bar{\beta}}{\xi-1}(1-\alpha)^{-\xi}, \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_85.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{CTM}_{\alpha} = \hat{q}_{\alpha} - \frac{\bar{\beta}}{\xi-1}(1-\alpha)^{-\xi}, \]</phrase></textobject></mediaobject></equation> cf. McNeil and Frey (2000).</para><para>Note that in case extreme values of the left tail are fitted, the distribution is mirrored with respect to the <inlineequation><alt>$y$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_112.png"/></imageobject><textobject role="tex"><phrase>$y$</phrase></textobject></inlinemediaobject></inlineequation> axis such that the left tail can be treated as a right tail. The computed fit parameters thus define the Pareto distribution that fits the mirrored left tail. When quantities like a quantile or a tail mean are computed using the fit parameters obtained from the mirrored data, the result is mirrored back, yielding the correct result.</para><para>For further details, see</para><para>J. R. M. Hosking and J. R. Wallis, Parameter and quantile estimation for the generalized Pareto distribution, Technometrics, Volume 29, 1987, p. 339-349</para><para>A. J. McNeil and R. Frey, Estimation of Tail-Related Risk Measures for Heteroscedastic Financial Time Series: an Extreme Value Approach, Journal of Empirical Finance, Volume 7, 2000, p. 271-300</para><para>
  392. </para></description><typedef name="float_type"><type>numeric::functional::fdiv&lt; Sample, std::size_t &gt;::result_type</type></typedef>
  393. <typedef name="result_type"><type>boost::tuple&lt; float_type, float_type, float_type &gt;</type></typedef>
  394. <typedef name="sign"><type>mpl::int_&lt; is_same&lt; LeftRight, <classname>left</classname> &gt;::value ? -1 :1 &gt;</type></typedef>
  395. <method-group name="public member functions">
  396. <method name="operator()"><type>void</type><template>
  397. <template-type-parameter name="Args"/>
  398. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  399. <method name="result" cv="const"><type>result_type</type><template>
  400. <template-type-parameter name="Args"/>
  401. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  402. <method name="serialize"><type>void</type><template>
  403. <template-type-parameter name="Archive"/>
  404. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  405. </method-group>
  406. <constructor><template>
  407. <template-type-parameter name="Args"/>
  408. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  409. </struct>
  410. </namespace>
  411. <namespace name="tag">
  412. <struct name="abstract_peaks_over_threshold"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct></namespace>
  413. </namespace>
  414. </namespace>
  415. </header>
  416. <header name="boost/accumulators/statistics/pot_quantile.hpp">
  417. <namespace name="boost">
  418. <namespace name="accumulators">
  419. <struct-specialization name="as_feature"><template>
  420. <template-type-parameter name="LeftRight"/>
  421. </template><specialization><template-arg>tag::pot_quantile&lt; LeftRight &gt;(with_threshold_probability)</template-arg></specialization><typedef name="type"><type><classname>tag::pot_quantile_prob</classname>&lt; LeftRight &gt;</type></typedef>
  422. </struct-specialization><struct-specialization name="as_feature"><template>
  423. <template-type-parameter name="LeftRight"/>
  424. </template><specialization><template-arg>tag::pot_quantile&lt; LeftRight &gt;(with_threshold_value)</template-arg></specialization><typedef name="type"><type><classname>tag::pot_quantile</classname>&lt; LeftRight &gt;</type></typedef>
  425. </struct-specialization><struct-specialization name="as_feature"><template>
  426. <template-type-parameter name="LeftRight"/>
  427. </template><specialization><template-arg>tag::weighted_pot_quantile&lt; LeftRight &gt;(with_threshold_probability)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_pot_quantile_prob</classname>&lt; LeftRight &gt;</type></typedef>
  428. </struct-specialization><struct-specialization name="as_feature"><template>
  429. <template-type-parameter name="LeftRight"/>
  430. </template><specialization><template-arg>tag::weighted_pot_quantile&lt; LeftRight &gt;(with_threshold_value)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_pot_quantile</classname>&lt; LeftRight &gt;</type></typedef>
  431. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  432. <template-type-parameter name="LeftRight"/>
  433. </template><specialization><template-arg>tag::pot_quantile&lt; LeftRight &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_pot_quantile</classname>&lt; LeftRight &gt;</type></typedef>
  434. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  435. <template-type-parameter name="LeftRight"/>
  436. </template><specialization><template-arg>tag::pot_quantile_prob&lt; LeftRight &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_pot_quantile_prob</classname>&lt; LeftRight &gt;</type></typedef>
  437. </struct-specialization><struct-specialization name="feature_of"><template>
  438. <template-type-parameter name="LeftRight"/>
  439. </template><specialization><template-arg>tag::pot_quantile&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::quantile &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  440. <template-type-parameter name="LeftRight"/>
  441. </template><specialization><template-arg>tag::pot_quantile_prob&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::quantile &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  442. <template-type-parameter name="LeftRight"/>
  443. </template><specialization><template-arg>tag::weighted_pot_quantile&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::pot_quantile&lt; LeftRight &gt; &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  444. <template-type-parameter name="LeftRight"/>
  445. </template><specialization><template-arg>tag::weighted_pot_quantile_prob&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::pot_quantile_prob&lt; LeftRight &gt; &gt;</inherit></struct-specialization><namespace name="impl">
  446. </namespace>
  447. <namespace name="tag">
  448. </namespace>
  449. </namespace>
  450. </namespace>
  451. </header>
  452. <header name="boost/accumulators/statistics/pot_tail_mean.hpp">
  453. <namespace name="boost">
  454. <namespace name="accumulators">
  455. <struct-specialization name="as_feature"><template>
  456. <template-type-parameter name="LeftRight"/>
  457. </template><specialization><template-arg>tag::pot_tail_mean&lt; LeftRight &gt;(with_threshold_probability)</template-arg></specialization><typedef name="type"><type><classname>tag::pot_tail_mean_prob</classname>&lt; LeftRight &gt;</type></typedef>
  458. </struct-specialization><struct-specialization name="as_feature"><template>
  459. <template-type-parameter name="LeftRight"/>
  460. </template><specialization><template-arg>tag::pot_tail_mean&lt; LeftRight &gt;(with_threshold_value)</template-arg></specialization><typedef name="type"><type><classname>tag::pot_tail_mean</classname>&lt; LeftRight &gt;</type></typedef>
  461. </struct-specialization><struct-specialization name="as_feature"><template>
  462. <template-type-parameter name="LeftRight"/>
  463. </template><specialization><template-arg>tag::weighted_pot_tail_mean&lt; LeftRight &gt;(with_threshold_probability)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_pot_tail_mean_prob</classname>&lt; LeftRight &gt;</type></typedef>
  464. </struct-specialization><struct-specialization name="as_feature"><template>
  465. <template-type-parameter name="LeftRight"/>
  466. </template><specialization><template-arg>tag::weighted_pot_tail_mean&lt; LeftRight &gt;(with_threshold_value)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_pot_tail_mean</classname>&lt; LeftRight &gt;</type></typedef>
  467. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  468. <template-type-parameter name="LeftRight"/>
  469. </template><specialization><template-arg>tag::pot_tail_mean&lt; LeftRight &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_pot_tail_mean</classname>&lt; LeftRight &gt;</type></typedef>
  470. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  471. <template-type-parameter name="LeftRight"/>
  472. </template><specialization><template-arg>tag::pot_tail_mean_prob&lt; LeftRight &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_pot_tail_mean_prob</classname>&lt; LeftRight &gt;</type></typedef>
  473. </struct-specialization><struct-specialization name="feature_of"><template>
  474. <template-type-parameter name="LeftRight"/>
  475. </template><specialization><template-arg>tag::pot_tail_mean&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::tail_mean &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  476. <template-type-parameter name="LeftRight"/>
  477. </template><specialization><template-arg>tag::pot_tail_mean_prob&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::tail_mean &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  478. <template-type-parameter name="LeftRight"/>
  479. </template><specialization><template-arg>tag::weighted_pot_tail_mean&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::pot_tail_mean&lt; LeftRight &gt; &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  480. <template-type-parameter name="LeftRight"/>
  481. </template><specialization><template-arg>tag::weighted_pot_tail_mean_prob&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::pot_tail_mean_prob&lt; LeftRight &gt; &gt;</inherit></struct-specialization><namespace name="impl">
  482. </namespace>
  483. <namespace name="tag">
  484. </namespace>
  485. </namespace>
  486. </namespace>
  487. </header>
  488. <header name="boost/accumulators/statistics/rolling_count.hpp">
  489. <namespace name="boost">
  490. <namespace name="accumulators">
  491. <namespace name="extract">
  492. <data-member name="rolling_count"><type><classname>extractor</classname>&lt; <classname>tag::rolling_count</classname> &gt; const</type></data-member>
  493. </namespace>
  494. <namespace name="impl">
  495. </namespace>
  496. <namespace name="tag">
  497. <struct name="rolling_count"><inherit access="public">boost::accumulators::depends_on&lt; rolling_window_plus1 &gt;</inherit><data-member name="window_size" specifiers="static"><type>boost::parameter::keyword&lt; tag::rolling_window_size &gt; const</type><purpose>tag::rolling_window::window_size named parameter </purpose></data-member>
  498. </struct></namespace>
  499. </namespace>
  500. </namespace>
  501. </header>
  502. <header name="boost/accumulators/statistics/rolling_mean.hpp">
  503. <namespace name="boost">
  504. <namespace name="accumulators">
  505. <struct-specialization name="as_feature"><template>
  506. </template><specialization><template-arg>tag::rolling_mean(immediate)</template-arg></specialization><typedef name="type"><type><classname>tag::immediate_rolling_mean</classname></type></typedef>
  507. </struct-specialization><struct-specialization name="as_feature"><template>
  508. </template><specialization><template-arg>tag::rolling_mean(lazy)</template-arg></specialization><typedef name="type"><type><classname>tag::lazy_rolling_mean</classname></type></typedef>
  509. </struct-specialization><struct-specialization name="feature_of"><template>
  510. </template><specialization><template-arg>tag::immediate_rolling_mean</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::rolling_mean &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  511. </template><specialization><template-arg>tag::lazy_rolling_mean</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::rolling_mean &gt;</inherit></struct-specialization><namespace name="extract">
  512. <data-member name="lazy_rolling_mean"><type><classname>extractor</classname>&lt; <classname>tag::lazy_rolling_mean</classname> &gt; const</type></data-member>
  513. <data-member name="immediate_rolling_mean"><type><classname>extractor</classname>&lt; <classname>tag::immediate_rolling_mean</classname> &gt; const</type></data-member>
  514. <data-member name="rolling_mean"><type><classname>extractor</classname>&lt; <classname>tag::rolling_mean</classname> &gt; const</type></data-member>
  515. </namespace>
  516. <namespace name="impl">
  517. <struct name="immediate_rolling_mean_impl"><template>
  518. <template-type-parameter name="Sample"/>
  519. </template><inherit access="public">accumulator_base</inherit><typedef name="result_type"><type>numeric::functional::fdiv&lt; Sample, std::size_t &gt;::result_type</type></typedef>
  520. <method-group name="public member functions">
  521. <method name="operator()"><type>void</type><template>
  522. <template-type-parameter name="Args"/>
  523. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  524. <method name="result" cv="const"><type>result_type</type><template>
  525. <template-type-parameter name="Args"/>
  526. </template><parameter name=""><paramtype>Args const &amp;</paramtype></parameter></method>
  527. <method name="serialize"><type>void</type><template>
  528. <template-type-parameter name="Archive"/>
  529. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  530. </method-group>
  531. <constructor><template>
  532. <template-type-parameter name="Args"/>
  533. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  534. </struct><struct name="lazy_rolling_mean_impl"><template>
  535. <template-type-parameter name="Sample"/>
  536. </template><inherit access="public">accumulator_base</inherit><typedef name="result_type"><type>numeric::functional::fdiv&lt; Sample, std::size_t, void, void &gt;::result_type</type></typedef>
  537. <method-group name="public member functions">
  538. <method name="result" cv="const"><type>result_type</type><template>
  539. <template-type-parameter name="Args"/>
  540. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  541. <method name="serialize"><type>void</type><template>
  542. <template-type-parameter name="Archive"/>
  543. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  544. </method-group>
  545. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  546. </struct>
  547. </namespace>
  548. <namespace name="tag">
  549. <struct name="immediate_rolling_mean"><inherit access="public">boost::accumulators::depends_on&lt; rolling_window_plus1, rolling_count &gt;</inherit><data-member name="window_size" specifiers="static"><type>boost::parameter::keyword&lt; tag::rolling_window_size &gt; const</type><purpose>tag::rolling_window::window_size named parameter </purpose></data-member>
  550. </struct><struct name="lazy_rolling_mean"><inherit access="public">boost::accumulators::depends_on&lt; rolling_sum, rolling_count &gt;</inherit><data-member name="window_size" specifiers="static"><type>boost::parameter::keyword&lt; tag::rolling_window_size &gt; const</type><purpose>tag::rolling_window::window_size named parameter </purpose></data-member>
  551. </struct><struct name="rolling_mean"><inherit access="public">boost::accumulators::tag::immediate_rolling_mean</inherit></struct></namespace>
  552. </namespace>
  553. </namespace>
  554. </header>
  555. <header name="boost/accumulators/statistics/rolling_moment.hpp">
  556. <namespace name="boost">
  557. <namespace name="accumulators">
  558. <namespace name="extract">
  559. </namespace>
  560. <namespace name="impl">
  561. <struct name="rolling_moment_impl"><template>
  562. <template-type-parameter name="N"/>
  563. <template-type-parameter name="Sample"/>
  564. </template><inherit access="public">accumulator_base</inherit><typedef name="result_type"><type>numeric::functional::fdiv&lt; Sample, std::size_t, void, void &gt;::result_type</type></typedef>
  565. <method-group name="public member functions">
  566. <method name="BOOST_MPL_ASSERT_RELATION"><type/><parameter name=""><paramtype>N::value</paramtype></parameter><parameter name=""><paramtype>0</paramtype></parameter></method>
  567. <method name="operator()"><type>void</type><template>
  568. <template-type-parameter name="Args"/>
  569. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  570. <method name="result" cv="const"><type>result_type</type><template>
  571. <template-type-parameter name="Args"/>
  572. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  573. <method name="serialize"><type>void</type><template>
  574. <template-type-parameter name="Archive"/>
  575. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  576. </method-group>
  577. <constructor><template>
  578. <template-type-parameter name="Args"/>
  579. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  580. </struct>
  581. </namespace>
  582. <namespace name="tag">
  583. <struct name="rolling_moment"><template>
  584. <template-nontype-parameter name="N"><type>int</type></template-nontype-parameter>
  585. </template><inherit access="public">boost::accumulators::depends_on&lt; rolling_window_plus1, rolling_count &gt;</inherit><data-member name="window_size" specifiers="static"><type>boost::parameter::keyword&lt; tag::rolling_window_size &gt; const</type><purpose>tag::rolling_window::window_size named parameter </purpose></data-member>
  586. </struct></namespace>
  587. </namespace>
  588. </namespace>
  589. </header>
  590. <header name="boost/accumulators/statistics/rolling_sum.hpp">
  591. <namespace name="boost">
  592. <namespace name="accumulators">
  593. <namespace name="extract">
  594. <data-member name="rolling_sum"><type><classname>extractor</classname>&lt; <classname>tag::rolling_sum</classname> &gt; const</type></data-member>
  595. </namespace>
  596. <namespace name="impl">
  597. </namespace>
  598. <namespace name="tag">
  599. <struct name="rolling_sum"><inherit access="public">boost::accumulators::depends_on&lt; rolling_window_plus1 &gt;</inherit><data-member name="window_size" specifiers="static"><type>boost::parameter::keyword&lt; tag::rolling_window_size &gt; const</type><purpose>tag::rolling_window::window_size named parameter </purpose></data-member>
  600. </struct></namespace>
  601. </namespace>
  602. </namespace>
  603. </header>
  604. <header name="boost/accumulators/statistics/rolling_variance.hpp">
  605. <namespace name="boost">
  606. <namespace name="accumulators">
  607. <struct-specialization name="as_feature"><template>
  608. </template><specialization><template-arg>tag::rolling_variance(immediate)</template-arg></specialization><typedef name="type"><type><classname>tag::immediate_rolling_variance</classname></type></typedef>
  609. </struct-specialization><struct-specialization name="as_feature"><template>
  610. </template><specialization><template-arg>tag::rolling_variance(lazy)</template-arg></specialization><typedef name="type"><type><classname>tag::lazy_rolling_variance</classname></type></typedef>
  611. </struct-specialization><struct-specialization name="feature_of"><template>
  612. </template><specialization><template-arg>tag::immediate_rolling_variance</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::rolling_variance &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  613. </template><specialization><template-arg>tag::lazy_rolling_variance</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::rolling_variance &gt;</inherit></struct-specialization><namespace name="extract">
  614. <data-member name="lazy_rolling_variance"><type><classname>extractor</classname>&lt; <classname>tag::lazy_rolling_variance</classname> &gt; const</type></data-member>
  615. <data-member name="immediate_rolling_variance"><type><classname>extractor</classname>&lt; <classname>tag::immediate_rolling_variance</classname> &gt; const</type></data-member>
  616. <data-member name="rolling_variance"><type><classname>extractor</classname>&lt; <classname>tag::rolling_variance</classname> &gt; const</type></data-member>
  617. </namespace>
  618. <namespace name="impl">
  619. <struct name="immediate_rolling_variance_impl"><template>
  620. <template-type-parameter name="Sample"/>
  621. </template><inherit access="public">accumulator_base</inherit><purpose>Iterative calculation of the rolling variance. </purpose><description><para>Iterative calculation of sample variance <inlineequation><alt>$\sigma_n^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_55.png"/></imageobject><textobject role="tex"><phrase>$\sigma_n^2$</phrase></textobject></inlinemediaobject></inlineequation> is done as follows, see also <ulink url="http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance">http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance</ulink>. For a rolling window of size <inlineequation><alt>$N$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_72.png"/></imageobject><textobject role="tex"><phrase>$N$</phrase></textobject></inlinemediaobject></inlineequation>, for the first <inlineequation><alt>$N$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_72.png"/></imageobject><textobject role="tex"><phrase>$N$</phrase></textobject></inlinemediaobject></inlineequation> samples, the variance is computed according to the formula <equation><title/><alt>\[ \sigma_n^2 = \frac{1}{n-1} \sum_{i = 1}^n (x_i - \mu_n)^2 = \frac{1}{n-1}M_{2,n}, \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_77.png"/></imageobject><textobject role="tex"><phrase>\[ \sigma_n^2 = \frac{1}{n-1} \sum_{i = 1}^n (x_i - \mu_n)^2 = \frac{1}{n-1}M_{2,n}, \]</phrase></textobject></mediaobject></equation> where the sum of squares <inlineequation><alt>$M_{2,n}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_78.png"/></imageobject><textobject role="tex"><phrase>$M_{2,n}$</phrase></textobject></inlinemediaobject></inlineequation> can be recursively computed as: <equation><title/><alt>\[ M_{2,n} = \sum_{i = 1}^n (x_i - \mu_n)^2 = M_{2,n-1} + (x_n - \mu_n)(x_n - \mu_{n-1}), \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_79.png"/></imageobject><textobject role="tex"><phrase>\[ M_{2,n} = \sum_{i = 1}^n (x_i - \mu_n)^2 = M_{2,n-1} + (x_n - \mu_n)(x_n - \mu_{n-1}), \]</phrase></textobject></mediaobject></equation> and the estimate of the sample mean as: <equation><title/><alt>\[ \mu_n = \frac{1}{n} \sum_{i = 1}^n x_i = \mu_{n-1} + \frac{1}{n}(x_n - \mu_{n-1}). \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_80.png"/></imageobject><textobject role="tex"><phrase>\[ \mu_n = \frac{1}{n} \sum_{i = 1}^n x_i = \mu_{n-1} + \frac{1}{n}(x_n - \mu_{n-1}). \]</phrase></textobject></mediaobject></equation> For further samples, when the rolling window is fully filled with data, one has to take into account that the oldest sample <inlineequation><alt>$x_{n-N}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_81.png"/></imageobject><textobject role="tex"><phrase>$x_{n-N}$</phrase></textobject></inlinemediaobject></inlineequation> is dropped from the window. The sample variance over the window now becomes: <equation><title/><alt>\[ \sigma_n^2 = \frac{1}{N-1} \sum_{i = n-N+1}^n (x_i - \mu_n)^2 = \frac{1}{n-1}M_{2,n}, \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_82.png"/></imageobject><textobject role="tex"><phrase>\[ \sigma_n^2 = \frac{1}{N-1} \sum_{i = n-N+1}^n (x_i - \mu_n)^2 = \frac{1}{n-1}M_{2,n}, \]</phrase></textobject></mediaobject></equation> where the sum of squares <inlineequation><alt>$M_{2,n}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_78.png"/></imageobject><textobject role="tex"><phrase>$M_{2,n}$</phrase></textobject></inlinemediaobject></inlineequation> now equals: <equation><title/><alt>\[ M_{2,n} = \sum_{i = n-N+1}^n (x_i - \mu_n)^2 = M_{2,n-1} + (x_n - \mu_n)(x_n - \mu_{n-1}) - (x_{n-N} - \mu_n)(x_{n-N} - \mu_{n-1}), \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_83.png"/></imageobject><textobject role="tex"><phrase>\[ M_{2,n} = \sum_{i = n-N+1}^n (x_i - \mu_n)^2 = M_{2,n-1} + (x_n - \mu_n)(x_n - \mu_{n-1}) - (x_{n-N} - \mu_n)(x_{n-N} - \mu_{n-1}), \]</phrase></textobject></mediaobject></equation> and the estimated mean is: <equation><title/><alt>\[ \mu_n = \frac{1}{N} \sum_{i = n-N+1}^n x_i = \mu_{n-1} + \frac{1}{n}(x_n - x_{n-N}). \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_84.png"/></imageobject><textobject role="tex"><phrase>\[ \mu_n = \frac{1}{N} \sum_{i = n-N+1}^n x_i = \mu_{n-1} + \frac{1}{n}(x_n - x_{n-N}). \]</phrase></textobject></mediaobject></equation></para><para>Note that the sample variance is not defined for <inlineequation><alt>$n &lt;= 1$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_8.png"/></imageobject><textobject role="tex"><phrase>$n &lt;= 1$</phrase></textobject></inlinemediaobject></inlineequation>. </para></description><typedef name="result_type"><type>numeric::functional::fdiv&lt; Sample, std::size_t &gt;::result_type</type></typedef>
  622. <method-group name="public member functions">
  623. <method name="operator()"><type>void</type><template>
  624. <template-type-parameter name="Args"/>
  625. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  626. <method name="result" cv="const"><type>result_type</type><template>
  627. <template-type-parameter name="Args"/>
  628. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  629. <method name="serialize"><type>void</type><template>
  630. <template-type-parameter name="Archive"/>
  631. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  632. </method-group>
  633. <constructor><template>
  634. <template-type-parameter name="Args"/>
  635. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  636. <method-group name="private member functions">
  637. <method name="prevent_underflow"><type>void</type><template>
  638. <template-type-parameter name="T"/>
  639. </template><parameter name="non_negative_number"><paramtype>T &amp;</paramtype></parameter><parameter name=""><paramtype>typename boost::enable_if&lt; boost::is_arithmetic&lt; T &gt;, T &gt;::type *</paramtype><default>0</default></parameter></method>
  640. <method name="prevent_underflow"><type>void</type><template>
  641. <template-type-parameter name="T"/>
  642. </template><parameter name="non_arithmetic_quantity"><paramtype>T &amp;</paramtype></parameter><parameter name=""><paramtype>typename boost::disable_if&lt; boost::is_arithmetic&lt; T &gt;, T &gt;::type *</paramtype><default>0</default></parameter></method>
  643. </method-group>
  644. </struct><struct name="lazy_rolling_variance_impl"><template>
  645. <template-type-parameter name="Sample"/>
  646. </template><inherit access="public">accumulator_base</inherit><purpose>Immediate (lazy) calculation of the rolling variance. </purpose><description><para>Calculation of sample variance <inlineequation><alt>$\sigma_n^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_55.png"/></imageobject><textobject role="tex"><phrase>$\sigma_n^2$</phrase></textobject></inlinemediaobject></inlineequation> is done as follows, see also <ulink url="http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance">http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance</ulink>. For a rolling window of size <inlineequation><alt>$N$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_72.png"/></imageobject><textobject role="tex"><phrase>$N$</phrase></textobject></inlinemediaobject></inlineequation>, when <inlineequation><alt>$n &lt;= N$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_73.png"/></imageobject><textobject role="tex"><phrase>$n &lt;= N$</phrase></textobject></inlinemediaobject></inlineequation>, the variance is computed according to the formula <equation><title/><alt>\[ \sigma_n^2 = \frac{1}{n-1} \sum_{i = 1}^n (x_i - \mu_n)^2. \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_74.png"/></imageobject><textobject role="tex"><phrase>\[ \sigma_n^2 = \frac{1}{n-1} \sum_{i = 1}^n (x_i - \mu_n)^2. \]</phrase></textobject></mediaobject></equation> When <inlineequation><alt>$n &gt; N$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_75.png"/></imageobject><textobject role="tex"><phrase>$n &gt; N$</phrase></textobject></inlinemediaobject></inlineequation>, the sample variance over the window becomes: <equation><title/><alt>\[ \sigma_n^2 = \frac{1}{N-1} \sum_{i = n-N+1}^n (x_i - \mu_n)^2. \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_76.png"/></imageobject><textobject role="tex"><phrase>\[ \sigma_n^2 = \frac{1}{N-1} \sum_{i = n-N+1}^n (x_i - \mu_n)^2. \]</phrase></textobject></mediaobject></equation> </para></description><typedef name="result_type"><type>numeric::functional::fdiv&lt; Sample, std::size_t, void, void &gt;::result_type</type></typedef>
  647. <method-group name="public member functions">
  648. <method name="result" cv="const"><type>result_type</type><template>
  649. <template-type-parameter name="Args"/>
  650. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  651. <method name="serialize"><type>void</type><template>
  652. <template-type-parameter name="Archive"/>
  653. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  654. </method-group>
  655. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  656. </struct>
  657. </namespace>
  658. <namespace name="tag">
  659. <struct name="immediate_rolling_variance"><inherit access="public">boost::accumulators::depends_on&lt; rolling_window_plus1, rolling_count, immediate_rolling_mean &gt;</inherit><data-member name="window_size" specifiers="static"><type>boost::parameter::keyword&lt; tag::rolling_window_size &gt; const</type><purpose>tag::rolling_window::window_size named parameter </purpose></data-member>
  660. </struct><struct name="lazy_rolling_variance"><inherit access="public">boost::accumulators::depends_on&lt; rolling_count, rolling_mean, rolling_moment&lt; 2 &gt; &gt;</inherit><data-member name="window_size" specifiers="static"><type>boost::parameter::keyword&lt; tag::rolling_window_size &gt; const</type><purpose>tag::rolling_window::window_size named parameter </purpose></data-member>
  661. </struct><struct name="rolling_variance"><inherit access="public">boost::accumulators::tag::immediate_rolling_variance</inherit></struct></namespace>
  662. </namespace>
  663. </namespace>
  664. </header>
  665. <header name="boost/accumulators/statistics/rolling_window.hpp">
  666. <namespace name="boost">
  667. <namespace name="accumulators">
  668. <namespace name="extract">
  669. <data-member name="rolling_window_plus1"><type><classname>extractor</classname>&lt; <classname>tag::rolling_window_plus1</classname> &gt; const</type></data-member>
  670. <data-member name="rolling_window"><type><classname>extractor</classname>&lt; <classname>tag::rolling_window</classname> &gt; const</type></data-member>
  671. </namespace>
  672. <namespace name="impl">
  673. <function name="is_rolling_window_plus1_full"><type>bool</type><template>
  674. <template-type-parameter name="Args"/>
  675. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></function>
  676. </namespace>
  677. <namespace name="tag">
  678. <struct name="rolling_window"><inherit access="public">boost::accumulators::depends_on&lt; rolling_window_plus1 &gt;</inherit><data-member name="window_size" specifiers="static"><type>boost::parameter::keyword&lt; tag::rolling_window_size &gt; const</type><purpose>tag::rolling_window::size named parameter </purpose></data-member>
  679. </struct><struct name="rolling_window_plus1"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit><inherit access="public">rolling_window_size</inherit><data-member name="window_size" specifiers="static"><type>boost::parameter::keyword&lt; tag::rolling_window_size &gt; const</type><purpose>tag::rolling_window::size named parameter </purpose></data-member>
  680. </struct></namespace>
  681. </namespace>
  682. <namespace name="serialization">
  683. <function name="save"><type>void</type><template>
  684. <template-type-parameter name="Archive"/>
  685. <template-type-parameter name="T"/>
  686. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="b"><paramtype>const circular_buffer&lt; T &gt; &amp;</paramtype></parameter><parameter name=""><paramtype>const unsigned int</paramtype></parameter></function>
  687. <function name="load"><type>void</type><template>
  688. <template-type-parameter name="Archive"/>
  689. <template-type-parameter name="T"/>
  690. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="b"><paramtype>circular_buffer&lt; T &gt; &amp;</paramtype></parameter><parameter name=""><paramtype>const unsigned int</paramtype></parameter></function>
  691. <function name="serialize"><type>void</type><template>
  692. <template-type-parameter name="Archive"/>
  693. <template-type-parameter name="T"/>
  694. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="b"><paramtype>circular_buffer&lt; T &gt; &amp;</paramtype></parameter><parameter name="version"><paramtype>const unsigned int</paramtype></parameter></function>
  695. </namespace>
  696. </namespace>
  697. </header>
  698. <header name="boost/accumulators/statistics/skewness.hpp">
  699. <namespace name="boost">
  700. <namespace name="accumulators">
  701. <struct-specialization name="as_weighted_feature"><template>
  702. </template><specialization><template-arg>tag::skewness</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_skewness</classname></type></typedef>
  703. </struct-specialization><struct-specialization name="feature_of"><template>
  704. </template><specialization><template-arg>tag::weighted_skewness</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::skewness &gt;</inherit></struct-specialization><namespace name="extract">
  705. <data-member name="skewness"><type><classname>extractor</classname>&lt; <classname>tag::skewness</classname> &gt; const</type></data-member>
  706. </namespace>
  707. <namespace name="impl">
  708. </namespace>
  709. <namespace name="tag">
  710. <struct name="skewness"><inherit access="public">boost::accumulators::depends_on&lt; mean, moment&lt; 2 &gt;, moment&lt; 3 &gt; &gt;</inherit></struct></namespace>
  711. </namespace>
  712. </namespace>
  713. </header>
  714. <header name="boost/accumulators/statistics/stats.hpp">
  715. <para>Contains the stats&lt;&gt; template. </para><namespace name="boost">
  716. <namespace name="accumulators">
  717. </namespace>
  718. </namespace>
  719. </header>
  720. <header name="boost/accumulators/statistics/sum.hpp">
  721. <namespace name="boost">
  722. <namespace name="accumulators">
  723. <struct-specialization name="as_weighted_feature"><template>
  724. </template><specialization><template-arg>tag::sum</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_sum</classname></type></typedef>
  725. </struct-specialization><struct-specialization name="feature_of"><template>
  726. <template-type-parameter name="VariateType"/>
  727. <template-type-parameter name="VariateTag"/>
  728. </template><specialization><template-arg>tag::sum_of_variates&lt; VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::abstract_sum_of_variates &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  729. </template><specialization><template-arg>tag::weighted_sum</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::sum &gt;</inherit></struct-specialization><namespace name="extract">
  730. <data-member name="sum"><type><classname>extractor</classname>&lt; <classname>tag::sum</classname> &gt; const</type></data-member>
  731. <data-member name="sum_of_weights"><type><classname>extractor</classname>&lt; <classname>tag::sum_of_weights</classname> &gt; const</type></data-member>
  732. <data-member name="sum_of_variates"><type><classname>extractor</classname>&lt; <classname>tag::abstract_sum_of_variates</classname> &gt; const</type></data-member>
  733. </namespace>
  734. <namespace name="impl">
  735. </namespace>
  736. <namespace name="tag">
  737. <struct name="abstract_sum_of_variates"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct><struct name="sum"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct><struct name="sum_of_weights"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit><typedef name="is_weight_accumulator"><type>mpl::true_</type></typedef>
  738. </struct></namespace>
  739. </namespace>
  740. </namespace>
  741. </header>
  742. <header name="boost/accumulators/statistics/sum_kahan.hpp">
  743. <namespace name="boost">
  744. <namespace name="accumulators">
  745. <struct-specialization name="as_feature"><template>
  746. </template><specialization><template-arg>tag::sum(kahan)</template-arg></specialization><typedef name="type"><type><classname>tag::sum_kahan</classname></type></typedef>
  747. </struct-specialization><struct-specialization name="as_feature"><template>
  748. </template><specialization><template-arg>tag::sum_of_weights(kahan)</template-arg></specialization><typedef name="type"><type><classname>tag::sum_of_weights_kahan</classname></type></typedef>
  749. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  750. </template><specialization><template-arg>tag::sum_kahan</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_sum_kahan</classname></type></typedef>
  751. </struct-specialization><struct-specialization name="feature_of"><template>
  752. </template><specialization><template-arg>tag::sum_kahan</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::sum &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  753. <template-type-parameter name="VariateType"/>
  754. <template-type-parameter name="VariateTag"/>
  755. </template><specialization><template-arg>tag::sum_of_variates_kahan&lt; VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::abstract_sum_of_variates &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  756. </template><specialization><template-arg>tag::sum_of_weights_kahan</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::sum_of_weights &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  757. </template><specialization><template-arg>tag::weighted_sum_kahan</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::sum &gt;</inherit></struct-specialization><namespace name="extract">
  758. <data-member name="sum_kahan"><type><classname>extractor</classname>&lt; <classname>tag::sum_kahan</classname> &gt; const</type></data-member>
  759. <data-member name="sum_of_weights_kahan"><type><classname>extractor</classname>&lt; <classname>tag::sum_of_weights_kahan</classname> &gt; const</type></data-member>
  760. <data-member name="sum_of_variates_kahan"><type><classname>extractor</classname>&lt; <classname>tag::abstract_sum_of_variates</classname> &gt; const</type></data-member>
  761. </namespace>
  762. <namespace name="impl">
  763. </namespace>
  764. <namespace name="tag">
  765. <struct name="sum_kahan"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct><struct name="sum_of_weights_kahan"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit><typedef name="is_weight_accumulator"><type>mpl::true_</type></typedef>
  766. </struct></namespace>
  767. </namespace>
  768. </namespace>
  769. </header>
  770. <header name="boost/accumulators/statistics/tail.hpp">
  771. <namespace name="boost">
  772. <namespace name="accumulators">
  773. <struct-specialization name="feature_of"><template>
  774. <template-type-parameter name="LeftRight"/>
  775. </template><specialization><template-arg>tag::tail&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::abstract_tail &gt;</inherit></struct-specialization><struct name="tail_cache_size_named_arg"><template>
  776. <template-type-parameter name="T"/>
  777. </template></struct><struct-specialization name="tail_cache_size_named_arg"><template>
  778. </template><specialization><template-arg>left</template-arg></specialization><inherit access="public">left_tail_cache_size</inherit></struct-specialization><struct-specialization name="tail_cache_size_named_arg"><template>
  779. </template><specialization><template-arg>right</template-arg></specialization><inherit access="public">right_tail_cache_size</inherit></struct-specialization><namespace name="extract">
  780. <data-member name="tail"><type><classname>extractor</classname>&lt; <classname>tag::abstract_tail</classname> &gt; const</type></data-member>
  781. </namespace>
  782. <namespace name="impl">
  783. </namespace>
  784. <namespace name="tag">
  785. <struct name="abstract_tail"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct></namespace>
  786. </namespace>
  787. </namespace>
  788. </header>
  789. <header name="boost/accumulators/statistics/tail_mean.hpp">
  790. <namespace name="boost">
  791. <namespace name="accumulators">
  792. <struct-specialization name="as_weighted_feature"><template>
  793. <template-type-parameter name="LeftRight"/>
  794. </template><specialization><template-arg>tag::non_coherent_tail_mean&lt; LeftRight &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::non_coherent_weighted_tail_mean</classname>&lt; LeftRight &gt;</type></typedef>
  795. </struct-specialization><struct-specialization name="feature_of"><template>
  796. <template-type-parameter name="LeftRight"/>
  797. </template><specialization><template-arg>tag::coherent_tail_mean&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::tail_mean &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  798. <template-type-parameter name="LeftRight"/>
  799. </template><specialization><template-arg>tag::non_coherent_tail_mean&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::abstract_non_coherent_tail_mean &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  800. <template-type-parameter name="LeftRight"/>
  801. </template><specialization><template-arg>tag::non_coherent_weighted_tail_mean&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::non_coherent_tail_mean&lt; LeftRight &gt; &gt;</inherit></struct-specialization><namespace name="extract">
  802. <data-member name="non_coherent_tail_mean"><type><classname>extractor</classname>&lt; <classname>tag::abstract_non_coherent_tail_mean</classname> &gt; const</type></data-member>
  803. <data-member name="coherent_tail_mean"><type><classname>extractor</classname>&lt; <classname>tag::tail_mean</classname> &gt; const</type></data-member>
  804. </namespace>
  805. <namespace name="impl">
  806. </namespace>
  807. <namespace name="tag">
  808. <struct name="abstract_non_coherent_tail_mean"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct></namespace>
  809. </namespace>
  810. </namespace>
  811. </header>
  812. <header name="boost/accumulators/statistics/tail_quantile.hpp">
  813. <namespace name="boost">
  814. <namespace name="accumulators">
  815. <struct-specialization name="as_weighted_feature"><template>
  816. <template-type-parameter name="LeftRight"/>
  817. </template><specialization><template-arg>tag::tail_quantile&lt; LeftRight &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_tail_quantile</classname>&lt; LeftRight &gt;</type></typedef>
  818. </struct-specialization><struct-specialization name="feature_of"><template>
  819. <template-type-parameter name="LeftRight"/>
  820. </template><specialization><template-arg>tag::tail_quantile&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::quantile &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  821. <template-type-parameter name="LeftRight"/>
  822. </template><specialization><template-arg>tag::weighted_tail_quantile&lt; LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::tail_quantile&lt; LeftRight &gt; &gt;</inherit></struct-specialization><namespace name="extract">
  823. <data-member name="tail_quantile"><type><classname>extractor</classname>&lt; <classname>tag::quantile</classname> &gt; const</type></data-member>
  824. </namespace>
  825. <namespace name="impl">
  826. </namespace>
  827. <namespace name="tag">
  828. </namespace>
  829. </namespace>
  830. </namespace>
  831. </header>
  832. <header name="boost/accumulators/statistics/tail_variate.hpp">
  833. <namespace name="boost">
  834. <namespace name="accumulators">
  835. <struct-specialization name="feature_of"><template>
  836. <template-type-parameter name="VariateType"/>
  837. <template-type-parameter name="VariateTag"/>
  838. <template-type-parameter name="LeftRight"/>
  839. </template><specialization><template-arg>tag::tail_variate&lt; VariateType</template-arg><template-arg>VariateTag</template-arg><template-arg>LeftRight &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::abstract_tail_variate &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  840. <template-type-parameter name="LeftRight"/>
  841. </template><specialization><template-arg>tag::tail_weights&lt; LeftRight &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::abstract_tail_weights</classname></type></typedef>
  842. </struct-specialization><namespace name="extract">
  843. <data-member name="tail_variate"><type><classname>extractor</classname>&lt; <classname>tag::abstract_tail_variate</classname> &gt; const</type></data-member>
  844. <data-member name="tail_weights"><type><classname>extractor</classname>&lt; <classname>tag::abstract_tail_weights</classname> &gt; const</type></data-member>
  845. </namespace>
  846. <namespace name="impl">
  847. </namespace>
  848. <namespace name="tag">
  849. <struct name="abstract_tail_variate"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct><struct name="abstract_tail_weights"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct></namespace>
  850. </namespace>
  851. </namespace>
  852. </header>
  853. <header name="boost/accumulators/statistics/tail_variate_means.hpp">
  854. <namespace name="boost">
  855. <namespace name="accumulators">
  856. <struct-specialization name="as_feature"><template>
  857. <template-type-parameter name="LeftRight"/>
  858. <template-type-parameter name="VariateType"/>
  859. <template-type-parameter name="VariateTag"/>
  860. </template><specialization><template-arg>tag::tail_variate_means&lt; LeftRight</template-arg><template-arg>VariateType</template-arg><template-arg>VariateTag &gt;(absolute)</template-arg></specialization><typedef name="type"><type><classname>tag::absolute_tail_variate_means</classname>&lt; LeftRight, VariateType, VariateTag &gt;</type></typedef>
  861. </struct-specialization><struct-specialization name="as_feature"><template>
  862. <template-type-parameter name="LeftRight"/>
  863. <template-type-parameter name="VariateType"/>
  864. <template-type-parameter name="VariateTag"/>
  865. </template><specialization><template-arg>tag::tail_variate_means&lt; LeftRight</template-arg><template-arg>VariateType</template-arg><template-arg>VariateTag &gt;(relative)</template-arg></specialization><typedef name="type"><type><classname>tag::relative_tail_variate_means</classname>&lt; LeftRight, VariateType, VariateTag &gt;</type></typedef>
  866. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  867. <template-type-parameter name="LeftRight"/>
  868. <template-type-parameter name="VariateType"/>
  869. <template-type-parameter name="VariateTag"/>
  870. </template><specialization><template-arg>tag::absolute_tail_variate_means&lt; LeftRight</template-arg><template-arg>VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::absolute_weighted_tail_variate_means</classname>&lt; LeftRight, VariateType, VariateTag &gt;</type></typedef>
  871. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  872. <template-type-parameter name="LeftRight"/>
  873. <template-type-parameter name="VariateType"/>
  874. <template-type-parameter name="VariateTag"/>
  875. </template><specialization><template-arg>tag::relative_tail_variate_means&lt; LeftRight</template-arg><template-arg>VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><typedef name="type"><type><classname>tag::relative_weighted_tail_variate_means</classname>&lt; LeftRight, VariateType, VariateTag &gt;</type></typedef>
  876. </struct-specialization><struct-specialization name="feature_of"><template>
  877. <template-type-parameter name="LeftRight"/>
  878. <template-type-parameter name="VariateType"/>
  879. <template-type-parameter name="VariateTag"/>
  880. </template><specialization><template-arg>tag::absolute_tail_variate_means&lt; LeftRight</template-arg><template-arg>VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::abstract_absolute_tail_variate_means &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  881. <template-type-parameter name="LeftRight"/>
  882. <template-type-parameter name="VariateType"/>
  883. <template-type-parameter name="VariateTag"/>
  884. </template><specialization><template-arg>tag::absolute_weighted_tail_variate_means&lt; LeftRight</template-arg><template-arg>VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::absolute_tail_variate_means&lt; LeftRight, VariateType, VariateTag &gt; &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  885. <template-type-parameter name="LeftRight"/>
  886. <template-type-parameter name="VariateType"/>
  887. <template-type-parameter name="VariateTag"/>
  888. </template><specialization><template-arg>tag::relative_tail_variate_means&lt; LeftRight</template-arg><template-arg>VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::abstract_relative_tail_variate_means &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  889. <template-type-parameter name="LeftRight"/>
  890. <template-type-parameter name="VariateType"/>
  891. <template-type-parameter name="VariateTag"/>
  892. </template><specialization><template-arg>tag::relative_weighted_tail_variate_means&lt; LeftRight</template-arg><template-arg>VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::relative_tail_variate_means&lt; LeftRight, VariateType, VariateTag &gt; &gt;</inherit></struct-specialization><namespace name="extract">
  893. <data-member name="tail_variate_means"><type><classname>extractor</classname>&lt; <classname>tag::abstract_absolute_tail_variate_means</classname> &gt; const</type></data-member>
  894. <data-member name="relative_tail_variate_means"><type><classname>extractor</classname>&lt; <classname>tag::abstract_relative_tail_variate_means</classname> &gt; const</type></data-member>
  895. </namespace>
  896. <namespace name="impl">
  897. </namespace>
  898. <namespace name="tag">
  899. <struct name="abstract_absolute_tail_variate_means"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct><struct name="abstract_relative_tail_variate_means"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct></namespace>
  900. </namespace>
  901. </namespace>
  902. </header>
  903. <header name="boost/accumulators/statistics/times2_iterator.hpp">
  904. <namespace name="boost">
  905. <namespace name="accumulators">
  906. </namespace>
  907. </namespace>
  908. </header>
  909. <header name="boost/accumulators/statistics/variance.hpp">
  910. <namespace name="boost">
  911. <namespace name="accumulators">
  912. <struct-specialization name="as_feature"><template>
  913. </template><specialization><template-arg>tag::variance(immediate)</template-arg></specialization><typedef name="type"><type><classname>tag::variance</classname></type></typedef>
  914. </struct-specialization><struct-specialization name="as_feature"><template>
  915. </template><specialization><template-arg>tag::variance(lazy)</template-arg></specialization><typedef name="type"><type><classname>tag::lazy_variance</classname></type></typedef>
  916. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  917. </template><specialization><template-arg>tag::lazy_variance</template-arg></specialization><typedef name="type"><type><classname>tag::lazy_weighted_variance</classname></type></typedef>
  918. </struct-specialization><struct-specialization name="as_weighted_feature"><template>
  919. </template><specialization><template-arg>tag::variance</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_variance</classname></type></typedef>
  920. </struct-specialization><struct-specialization name="feature_of"><template>
  921. </template><specialization><template-arg>tag::lazy_variance</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::variance &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  922. </template><specialization><template-arg>tag::lazy_weighted_variance</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::lazy_variance &gt;</inherit></struct-specialization><struct-specialization name="feature_of"><template>
  923. </template><specialization><template-arg>tag::weighted_variance</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::variance &gt;</inherit></struct-specialization><namespace name="extract">
  924. <data-member name="lazy_variance"><type><classname>extractor</classname>&lt; <classname>tag::lazy_variance</classname> &gt; const</type></data-member>
  925. <data-member name="variance"><type><classname>extractor</classname>&lt; <classname>tag::variance</classname> &gt; const</type></data-member>
  926. </namespace>
  927. <namespace name="impl">
  928. </namespace>
  929. <namespace name="tag">
  930. <struct name="lazy_variance"><inherit access="public">boost::accumulators::depends_on&lt; moment&lt; 2 &gt;, mean &gt;</inherit></struct><struct name="variance"><inherit access="public">boost::accumulators::depends_on&lt; count, immediate_mean &gt;</inherit></struct></namespace>
  931. </namespace>
  932. </namespace>
  933. </header>
  934. <header name="boost/accumulators/statistics/variates/covariate.hpp">
  935. <namespace name="boost">
  936. <namespace name="accumulators">
  937. <namespace name="tag">
  938. <struct name="covariate1"/><struct name="covariate2"/></namespace>
  939. <data-member name="covariate1"><type>boost::parameter::keyword&lt; tag ::covariate1 &gt; const</type></data-member>
  940. <data-member name="covariate2"><type>boost::parameter::keyword&lt; tag ::covariate2 &gt; const</type></data-member>
  941. </namespace>
  942. </namespace>
  943. </header>
  944. <header name="boost/accumulators/statistics/weighted_covariance.hpp">
  945. <namespace name="boost">
  946. <namespace name="accumulators">
  947. <namespace name="extract">
  948. <data-member name="weighted_covariance"><type><classname>extractor</classname>&lt; <classname>tag::abstract_covariance</classname> &gt; const</type></data-member>
  949. </namespace>
  950. <namespace name="impl">
  951. </namespace>
  952. <namespace name="tag">
  953. </namespace>
  954. </namespace>
  955. </namespace>
  956. </header>
  957. <header name="boost/accumulators/statistics/weighted_density.hpp">
  958. <namespace name="boost">
  959. <namespace name="accumulators">
  960. <namespace name="extract">
  961. <data-member name="weighted_density"><type><classname>extractor</classname>&lt; <classname>tag::density</classname> &gt; const</type></data-member>
  962. </namespace>
  963. <namespace name="impl">
  964. </namespace>
  965. <namespace name="tag">
  966. <struct name="weighted_density"><inherit access="public">boost::accumulators::depends_on&lt; count, sum_of_weights, min, max &gt;</inherit><inherit access="public">density_cache_size</inherit><inherit access="public">density_num_bins</inherit><data-member name="cache_size" specifiers="static"><type>boost::parameter::keyword&lt; density_cache_size &gt; const</type></data-member>
  967. <data-member name="num_bins" specifiers="static"><type>boost::parameter::keyword&lt; density_num_bins &gt; const</type></data-member>
  968. </struct></namespace>
  969. </namespace>
  970. </namespace>
  971. </header>
  972. <header name="boost/accumulators/statistics/weighted_extended_p_square.hpp">
  973. <namespace name="boost">
  974. <namespace name="accumulators">
  975. <namespace name="extract">
  976. <data-member name="weighted_extended_p_square"><type><classname>extractor</classname>&lt; <classname>tag::weighted_extended_p_square</classname> &gt; const</type></data-member>
  977. </namespace>
  978. <namespace name="impl">
  979. </namespace>
  980. <namespace name="tag">
  981. <struct name="weighted_extended_p_square"><inherit access="public">boost::accumulators::depends_on&lt; count, sum_of_weights &gt;</inherit><inherit access="public">extended_p_square_probabilities</inherit><typedef name="impl"><type><classname>accumulators::impl::weighted_extended_p_square_impl</classname>&lt; mpl::_1, mpl::_2 &gt;</type></typedef>
  982. </struct></namespace>
  983. </namespace>
  984. </namespace>
  985. </header>
  986. <header name="boost/accumulators/statistics/weighted_kurtosis.hpp">
  987. <namespace name="boost">
  988. <namespace name="accumulators">
  989. <namespace name="extract">
  990. <data-member name="weighted_kurtosis"><type><classname>extractor</classname>&lt; <classname>tag::weighted_kurtosis</classname> &gt; const</type></data-member>
  991. </namespace>
  992. <namespace name="impl">
  993. </namespace>
  994. <namespace name="tag">
  995. <struct name="weighted_kurtosis"><inherit access="public">boost::accumulators::depends_on&lt; weighted_mean, weighted_moment&lt; 2 &gt;, weighted_moment&lt; 3 &gt;, weighted_moment&lt; 4 &gt; &gt;</inherit></struct></namespace>
  996. </namespace>
  997. </namespace>
  998. </header>
  999. <header name="boost/accumulators/statistics/weighted_mean.hpp">
  1000. <namespace name="boost">
  1001. <namespace name="accumulators">
  1002. <struct-specialization name="as_feature"><template>
  1003. </template><specialization><template-arg>tag::weighted_mean(immediate)</template-arg></specialization><typedef name="type"><type><classname>tag::immediate_weighted_mean</classname></type></typedef>
  1004. </struct-specialization><struct-specialization name="as_feature"><template>
  1005. </template><specialization><template-arg>tag::weighted_mean(lazy)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_mean</classname></type></typedef>
  1006. </struct-specialization><struct-specialization name="as_feature"><template>
  1007. <template-type-parameter name="VariateType"/>
  1008. <template-type-parameter name="VariateTag"/>
  1009. </template><specialization><template-arg>tag::weighted_mean_of_variates&lt; VariateType</template-arg><template-arg>VariateTag &gt;(immediate)</template-arg></specialization><typedef name="type"><type><classname>tag::immediate_weighted_mean_of_variates</classname>&lt; VariateType, VariateTag &gt;</type></typedef>
  1010. </struct-specialization><struct-specialization name="as_feature"><template>
  1011. <template-type-parameter name="VariateType"/>
  1012. <template-type-parameter name="VariateTag"/>
  1013. </template><specialization><template-arg>tag::weighted_mean_of_variates&lt; VariateType</template-arg><template-arg>VariateTag &gt;(lazy)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_mean_of_variates</classname>&lt; VariateType, VariateTag &gt;</type></typedef>
  1014. </struct-specialization><namespace name="extract">
  1015. <data-member name="weighted_mean"><type><classname>extractor</classname>&lt; <classname>tag::mean</classname> &gt; const</type></data-member>
  1016. </namespace>
  1017. <namespace name="impl">
  1018. </namespace>
  1019. <namespace name="tag">
  1020. <struct name="immediate_weighted_mean"><inherit access="public">boost::accumulators::depends_on&lt; sum_of_weights &gt;</inherit></struct><struct name="weighted_mean"><inherit access="public">boost::accumulators::depends_on&lt; sum_of_weights, weighted_sum &gt;</inherit></struct></namespace>
  1021. </namespace>
  1022. </namespace>
  1023. </header>
  1024. <header name="boost/accumulators/statistics/weighted_median.hpp">
  1025. <namespace name="boost">
  1026. <namespace name="accumulators">
  1027. <struct-specialization name="as_feature"><template>
  1028. </template><specialization><template-arg>tag::weighted_median(with_density)</template-arg></specialization><typedef name="type"><type><classname>tag::with_density_weighted_median</classname></type></typedef>
  1029. </struct-specialization><struct-specialization name="as_feature"><template>
  1030. </template><specialization><template-arg>tag::weighted_median(with_p_square_cumulative_distribution)</template-arg></specialization><typedef name="type"><type><classname>tag::with_p_square_cumulative_distribution_weighted_median</classname></type></typedef>
  1031. </struct-specialization><struct-specialization name="as_feature"><template>
  1032. </template><specialization><template-arg>tag::weighted_median(with_p_square_quantile)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_median</classname></type></typedef>
  1033. </struct-specialization><namespace name="extract">
  1034. <data-member name="weighted_median"><type><classname>extractor</classname>&lt; <classname>tag::median</classname> &gt; const</type></data-member>
  1035. </namespace>
  1036. <namespace name="impl">
  1037. </namespace>
  1038. <namespace name="tag">
  1039. <struct name="weighted_median"><inherit access="public">boost::accumulators::depends_on&lt; weighted_p_square_quantile_for_median &gt;</inherit></struct><struct name="with_density_weighted_median"><inherit access="public">boost::accumulators::depends_on&lt; count, weighted_density &gt;</inherit></struct><struct name="with_p_square_cumulative_distribution_weighted_median"><inherit access="public">boost::accumulators::depends_on&lt; weighted_p_square_cumulative_distribution &gt;</inherit></struct></namespace>
  1040. </namespace>
  1041. </namespace>
  1042. </header>
  1043. <header name="boost/accumulators/statistics/weighted_moment.hpp">
  1044. <namespace name="boost">
  1045. <namespace name="accumulators">
  1046. <namespace name="extract">
  1047. </namespace>
  1048. <namespace name="impl">
  1049. </namespace>
  1050. <namespace name="tag">
  1051. </namespace>
  1052. </namespace>
  1053. </namespace>
  1054. </header>
  1055. <header name="boost/accumulators/statistics/weighted_p_square_cumul_dist.hpp">
  1056. <namespace name="boost">
  1057. <namespace name="accumulators">
  1058. <namespace name="extract">
  1059. <data-member name="weighted_p_square_cumulative_distribution"><type><classname>extractor</classname>&lt; <classname>tag::weighted_p_square_cumulative_distribution</classname> &gt; const</type></data-member>
  1060. </namespace>
  1061. <namespace name="impl">
  1062. </namespace>
  1063. <namespace name="tag">
  1064. <struct name="weighted_p_square_cumulative_distribution"><inherit access="public">boost::accumulators::depends_on&lt; count, sum_of_weights &gt;</inherit><inherit access="public">p_square_cumulative_distribution_num_cells</inherit><typedef name="impl"><type><classname>accumulators::impl::weighted_p_square_cumulative_distribution_impl</classname>&lt; mpl::_1, mpl::_2 &gt;</type></typedef>
  1065. </struct></namespace>
  1066. </namespace>
  1067. </namespace>
  1068. </header>
  1069. <header name="boost/accumulators/statistics/weighted_p_square_cumulative_distribution.hpp">
  1070. </header>
  1071. <header name="boost/accumulators/statistics/weighted_p_square_quantile.hpp">
  1072. <namespace name="boost">
  1073. <namespace name="accumulators">
  1074. <namespace name="extract">
  1075. <data-member name="weighted_p_square_quantile"><type><classname>extractor</classname>&lt; <classname>tag::weighted_p_square_quantile</classname> &gt; const</type></data-member>
  1076. <data-member name="weighted_p_square_quantile_for_median"><type><classname>extractor</classname>&lt; <classname>tag::weighted_p_square_quantile_for_median</classname> &gt; const</type></data-member>
  1077. </namespace>
  1078. <namespace name="impl">
  1079. </namespace>
  1080. <namespace name="tag">
  1081. <struct name="weighted_p_square_quantile"><inherit access="public">boost::accumulators::depends_on&lt; count, sum_of_weights &gt;</inherit><typedef name="impl"><type><classname>accumulators::impl::weighted_p_square_quantile_impl</classname>&lt; mpl::_1, mpl::_2, <classname>regular</classname> &gt;</type></typedef>
  1082. </struct><struct name="weighted_p_square_quantile_for_median"><inherit access="public">boost::accumulators::depends_on&lt; count, sum_of_weights &gt;</inherit><typedef name="impl"><type><classname>accumulators::impl::weighted_p_square_quantile_impl</classname>&lt; mpl::_1, mpl::_2, <classname>for_median</classname> &gt;</type></typedef>
  1083. </struct></namespace>
  1084. </namespace>
  1085. </namespace>
  1086. </header>
  1087. <header name="boost/accumulators/statistics/weighted_peaks_over_threshold.hpp">
  1088. <namespace name="boost">
  1089. <namespace name="accumulators">
  1090. <struct-specialization name="as_feature"><template>
  1091. <template-type-parameter name="LeftRight"/>
  1092. </template><specialization><template-arg>tag::weighted_peaks_over_threshold&lt; LeftRight &gt;(with_threshold_probability)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_peaks_over_threshold_prob</classname>&lt; LeftRight &gt;</type></typedef>
  1093. </struct-specialization><struct-specialization name="as_feature"><template>
  1094. <template-type-parameter name="LeftRight"/>
  1095. </template><specialization><template-arg>tag::weighted_peaks_over_threshold&lt; LeftRight &gt;(with_threshold_value)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_peaks_over_threshold</classname>&lt; LeftRight &gt;</type></typedef>
  1096. </struct-specialization><namespace name="extract">
  1097. <data-member name="weighted_peaks_over_threshold"><type><classname>extractor</classname>&lt; <classname>tag::abstract_peaks_over_threshold</classname> &gt; const</type></data-member>
  1098. </namespace>
  1099. <namespace name="impl">
  1100. </namespace>
  1101. <namespace name="tag">
  1102. </namespace>
  1103. </namespace>
  1104. </namespace>
  1105. </header>
  1106. <header name="boost/accumulators/statistics/weighted_skewness.hpp">
  1107. <namespace name="boost">
  1108. <namespace name="accumulators">
  1109. <namespace name="extract">
  1110. <data-member name="weighted_skewness"><type><classname>extractor</classname>&lt; <classname>tag::weighted_skewness</classname> &gt; const</type></data-member>
  1111. </namespace>
  1112. <namespace name="impl">
  1113. </namespace>
  1114. <namespace name="tag">
  1115. <struct name="weighted_skewness"><inherit access="public">boost::accumulators::depends_on&lt; weighted_mean, weighted_moment&lt; 2 &gt;, weighted_moment&lt; 3 &gt; &gt;</inherit></struct></namespace>
  1116. </namespace>
  1117. </namespace>
  1118. </header>
  1119. <header name="boost/accumulators/statistics/weighted_sum.hpp">
  1120. <namespace name="boost">
  1121. <namespace name="accumulators">
  1122. <struct-specialization name="feature_of"><template>
  1123. <template-type-parameter name="VariateType"/>
  1124. <template-type-parameter name="VariateTag"/>
  1125. </template><specialization><template-arg>tag::weighted_sum_of_variates&lt; VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::abstract_weighted_sum_of_variates &gt;</inherit></struct-specialization><namespace name="extract">
  1126. <data-member name="weighted_sum"><type><classname>extractor</classname>&lt; <classname>tag::weighted_sum</classname> &gt; const</type></data-member>
  1127. <data-member name="weighted_sum_of_variates"><type><classname>extractor</classname>&lt; <classname>tag::abstract_weighted_sum_of_variates</classname> &gt; const</type></data-member>
  1128. </namespace>
  1129. <namespace name="impl">
  1130. </namespace>
  1131. <namespace name="tag">
  1132. <struct name="abstract_weighted_sum_of_variates"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct><struct name="weighted_sum"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct></namespace>
  1133. </namespace>
  1134. </namespace>
  1135. </header>
  1136. <header name="boost/accumulators/statistics/weighted_sum_kahan.hpp">
  1137. <namespace name="boost">
  1138. <namespace name="accumulators">
  1139. <struct-specialization name="as_feature"><template>
  1140. </template><specialization><template-arg>tag::weighted_sum(kahan)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_sum_kahan</classname></type></typedef>
  1141. </struct-specialization><struct-specialization name="feature_of"><template>
  1142. <template-type-parameter name="VariateType"/>
  1143. <template-type-parameter name="VariateTag"/>
  1144. </template><specialization><template-arg>tag::weighted_sum_of_variates_kahan&lt; VariateType</template-arg><template-arg>VariateTag &gt;</template-arg></specialization><inherit access="public">boost::accumulators::feature_of&lt; tag::abstract_weighted_sum_of_variates &gt;</inherit></struct-specialization><namespace name="extract">
  1145. <data-member name="weighted_sum_kahan"><type><classname>extractor</classname>&lt; <classname>tag::weighted_sum_kahan</classname> &gt; const</type></data-member>
  1146. <data-member name="weighted_sum_of_variates_kahan"><type><classname>extractor</classname>&lt; <classname>tag::abstract_weighted_sum_of_variates</classname> &gt; const</type></data-member>
  1147. </namespace>
  1148. <namespace name="impl">
  1149. </namespace>
  1150. <namespace name="tag">
  1151. <struct name="weighted_sum_kahan"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct><struct name="weighted_sum_of_variates_kahan"><template>
  1152. <template-type-parameter name="VariateType"/>
  1153. <template-type-parameter name="VariateTag"/>
  1154. </template><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct></namespace>
  1155. </namespace>
  1156. </namespace>
  1157. </header>
  1158. <header name="boost/accumulators/statistics/weighted_tail_mean.hpp">
  1159. <namespace name="boost">
  1160. <namespace name="accumulators">
  1161. <namespace name="extract">
  1162. <data-member name="non_coherent_weighted_tail_mean"><type><classname>extractor</classname>&lt; <classname>tag::abstract_non_coherent_tail_mean</classname> &gt; const</type></data-member>
  1163. </namespace>
  1164. <namespace name="impl">
  1165. </namespace>
  1166. <namespace name="tag">
  1167. </namespace>
  1168. </namespace>
  1169. </namespace>
  1170. </header>
  1171. <header name="boost/accumulators/statistics/weighted_tail_quantile.hpp">
  1172. <namespace name="boost">
  1173. <namespace name="accumulators">
  1174. <namespace name="extract">
  1175. <data-member name="weighted_tail_quantile"><type><classname>extractor</classname>&lt; <classname>tag::quantile</classname> &gt; const</type></data-member>
  1176. </namespace>
  1177. <namespace name="impl">
  1178. </namespace>
  1179. <namespace name="tag">
  1180. </namespace>
  1181. </namespace>
  1182. </namespace>
  1183. </header>
  1184. <header name="boost/accumulators/statistics/weighted_tail_variate_means.hpp">
  1185. <namespace name="boost">
  1186. <namespace name="accumulators">
  1187. <struct-specialization name="as_feature"><template>
  1188. <template-type-parameter name="LeftRight"/>
  1189. <template-type-parameter name="VariateType"/>
  1190. <template-type-parameter name="VariateTag"/>
  1191. </template><specialization><template-arg>tag::weighted_tail_variate_means&lt; LeftRight</template-arg><template-arg>VariateType</template-arg><template-arg>VariateTag &gt;(absolute)</template-arg></specialization><typedef name="type"><type><classname>tag::absolute_weighted_tail_variate_means</classname>&lt; LeftRight, VariateType, VariateTag &gt;</type></typedef>
  1192. </struct-specialization><struct-specialization name="as_feature"><template>
  1193. <template-type-parameter name="LeftRight"/>
  1194. <template-type-parameter name="VariateType"/>
  1195. <template-type-parameter name="VariateTag"/>
  1196. </template><specialization><template-arg>tag::weighted_tail_variate_means&lt; LeftRight</template-arg><template-arg>VariateType</template-arg><template-arg>VariateTag &gt;(relative)</template-arg></specialization><typedef name="type"><type><classname>tag::relative_weighted_tail_variate_means</classname>&lt; LeftRight, VariateType, VariateTag &gt;</type></typedef>
  1197. </struct-specialization><namespace name="extract">
  1198. <data-member name="weighted_tail_variate_means"><type><classname>extractor</classname>&lt; <classname>tag::abstract_absolute_tail_variate_means</classname> &gt; const</type></data-member>
  1199. <data-member name="relative_weighted_tail_variate_means"><type><classname>extractor</classname>&lt; <classname>tag::abstract_relative_tail_variate_means</classname> &gt; const</type></data-member>
  1200. </namespace>
  1201. <namespace name="impl">
  1202. </namespace>
  1203. <namespace name="tag">
  1204. </namespace>
  1205. </namespace>
  1206. <namespace name="numeric">
  1207. <namespace name="functional">
  1208. <struct name="multiply_and_promote_to_double"><template>
  1209. <template-type-parameter name="T"/>
  1210. <template-type-parameter name="U"/>
  1211. </template><inherit access="public">functional::multiplies&lt; T, double const &gt;</inherit></struct></namespace>
  1212. </namespace>
  1213. </namespace>
  1214. </header>
  1215. <header name="boost/accumulators/statistics/weighted_variance.hpp">
  1216. <namespace name="boost">
  1217. <namespace name="accumulators">
  1218. <struct-specialization name="as_feature"><template>
  1219. </template><specialization><template-arg>tag::weighted_variance(immediate)</template-arg></specialization><typedef name="type"><type><classname>tag::weighted_variance</classname></type></typedef>
  1220. </struct-specialization><struct-specialization name="as_feature"><template>
  1221. </template><specialization><template-arg>tag::weighted_variance(lazy)</template-arg></specialization><typedef name="type"><type><classname>tag::lazy_weighted_variance</classname></type></typedef>
  1222. </struct-specialization><namespace name="extract">
  1223. <data-member name="lazy_weighted_variance"><type><classname>extractor</classname>&lt; <classname>tag::lazy_weighted_variance</classname> &gt; const</type></data-member>
  1224. <data-member name="weighted_variance"><type><classname>extractor</classname>&lt; <classname>tag::weighted_variance</classname> &gt; const</type></data-member>
  1225. </namespace>
  1226. <namespace name="impl">
  1227. </namespace>
  1228. <namespace name="tag">
  1229. <struct name="lazy_weighted_variance"><inherit access="public">boost::accumulators::depends_on&lt; weighted_moment&lt; 2 &gt;, weighted_mean &gt;</inherit></struct><struct name="weighted_variance"><inherit access="public">boost::accumulators::depends_on&lt; count, immediate_weighted_mean &gt;</inherit></struct></namespace>
  1230. </namespace>
  1231. </namespace>
  1232. </header>
  1233. <header name="boost/accumulators/statistics/with_error.hpp">
  1234. <namespace name="boost">
  1235. <namespace name="accumulators">
  1236. </namespace>
  1237. </namespace>
  1238. </header>
  1239. <header name="boost/accumulators/statistics_fwd.hpp">
  1240. <namespace name="boost">
  1241. <namespace name="accumulators">
  1242. <struct name="absolute"/><struct name="for_median"/><struct name="immediate"/><struct name="kahan"/><struct name="lazy"/><struct name="left"/><struct name="linear"/><struct name="quadratic"/><struct name="regular"/><struct name="relative"/><struct name="right"/><struct name="stats"><template>
  1243. <template-type-parameter name="Stat1"/>
  1244. <template-type-parameter name="Stat2"/>
  1245. <template-nontype-parameter name=""><type>...</type></template-nontype-parameter>
  1246. </template><inherit access="public">mpl::vector&lt; Stat1, Stat2,... &gt;</inherit><purpose>An MPL sequence of statistics. </purpose></struct><struct name="unweighted"/><struct name="weighted"/><struct name="with_density"/><struct name="with_error"><template>
  1247. <template-type-parameter name="Feature1"/>
  1248. <template-type-parameter name="Feature2"/>
  1249. <template-nontype-parameter name=""><type>...</type></template-nontype-parameter>
  1250. </template></struct><struct name="with_p_square_cumulative_distribution"/><struct name="with_p_square_quantile"/><struct name="with_threshold_probability"/><struct name="with_threshold_value"/><namespace name="extract">
  1251. <data-member name="quantile"><type><classname>extractor</classname>&lt; <classname>tag::quantile</classname> &gt; const</type></data-member>
  1252. <data-member name="tail_mean"><type><classname>extractor</classname>&lt; <classname>tag::tail_mean</classname> &gt; const</type></data-member>
  1253. </namespace>
  1254. <namespace name="impl">
  1255. <struct name="coherent_tail_mean_impl"><template>
  1256. <template-type-parameter name="Sample"/>
  1257. <template-type-parameter name="LeftRight"/>
  1258. </template><inherit access="public">accumulator_base</inherit><purpose>Estimation of the coherent tail mean based on order statistics (for both left and right tails) </purpose><description><para>The coherent tail mean <inlineequation><alt>$\widehat{CTM}_{n,\alpha}(X)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_67.png"/></imageobject><textobject role="tex"><phrase>$\widehat{CTM}_{n,\alpha}(X)$</phrase></textobject></inlinemediaobject></inlineequation> is equal to the non-coherent tail mean <inlineequation><alt>$\widehat{NCTM}_{n,\alpha}(X)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_14.png"/></imageobject><textobject role="tex"><phrase>$\widehat{NCTM}_{n,\alpha}(X)$</phrase></textobject></inlinemediaobject></inlineequation> plus a correction term that ensures coherence in case of non-continuous distributions.</para><para><equation><title/><alt>\[ \widehat{CTM}_{n,\alpha}^{\mathrm{right}}(X) = \widehat{NCTM}_{n,\alpha}^{\mathrm{right}}(X) + \frac{1}{\lceil n(1-\alpha)\rceil}\hat{q}_{n,\alpha}(X)\left(1 - \alpha - \frac{1}{n}\lceil n(1-\alpha)\rceil \right) \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_68.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{CTM}_{n,\alpha}^{\mathrm{right}}(X) = \widehat{NCTM}_{n,\alpha}^{\mathrm{right}}(X) + \frac{1}{\lceil n(1-\alpha)\rceil}\hat{q}_{n,\alpha}(X)\left(1 - \alpha - \frac{1}{n}\lceil n(1-\alpha)\rceil \right) \]</phrase></textobject></mediaobject></equation></para><para><equation><title/><alt>\[ \widehat{CTM}_{n,\alpha}^{\mathrm{left}}(X) = \widehat{NCTM}_{n,\alpha}^{\mathrm{left}}(X) + \frac{1}{\lceil n\alpha\rceil}\hat{q}_{n,\alpha}(X)\left(\alpha - \frac{1}{n}\lceil n\alpha\rceil \right) \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_69.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{CTM}_{n,\alpha}^{\mathrm{left}}(X) = \widehat{NCTM}_{n,\alpha}^{\mathrm{left}}(X) + \frac{1}{\lceil n\alpha\rceil}\hat{q}_{n,\alpha}(X)\left(\alpha - \frac{1}{n}\lceil n\alpha\rceil \right) \]</phrase></textobject></mediaobject></equation> </para></description><method-group name="public member functions">
  1259. <method name="result" cv="const"><type>result_type</type><template>
  1260. <template-type-parameter name="Args"/>
  1261. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1262. <method name="serialize"><type>void</type><template>
  1263. <template-type-parameter name="Archive"/>
  1264. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1265. </method-group>
  1266. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1267. </struct><struct name="covariance_impl"><template>
  1268. <template-type-parameter name="Sample"/>
  1269. <template-type-parameter name="VariateType"/>
  1270. <template-type-parameter name="VariateTag"/>
  1271. </template><inherit access="public">accumulator_base</inherit><purpose>Covariance Estimator. </purpose><description><para>An iterative Monte Carlo estimator for the covariance <inlineequation><alt>$\mathrm{Cov}(X,X')$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_47.png"/></imageobject><textobject role="tex"><phrase>$\mathrm{Cov}(X,X')$</phrase></textobject></inlinemediaobject></inlineequation>, where <inlineequation><alt>$X$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_48.png"/></imageobject><textobject role="tex"><phrase>$X$</phrase></textobject></inlinemediaobject></inlineequation> is a sample and <inlineequation><alt>$X'$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_49.png"/></imageobject><textobject role="tex"><phrase>$X'$</phrase></textobject></inlinemediaobject></inlineequation> is a variate, is given by:</para><para><equation><title/><alt>\[ \hat{c}_n = \frac{n-1}{n} \hat{c}_{n-1} + \frac{1}{n-1}(X_n - \hat{\mu}_n)(X_n' - \hat{\mu}_n'),\quad n\ge2,\quad\hat{c}_1 = 0, \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_113.png"/></imageobject><textobject role="tex"><phrase>\[ \hat{c}_n = \frac{n-1}{n} \hat{c}_{n-1} + \frac{1}{n-1}(X_n - \hat{\mu}_n)(X_n' - \hat{\mu}_n'),\quad n\ge2,\quad\hat{c}_1 = 0, \]</phrase></textobject></mediaobject></equation></para><para><inlineequation><alt>$\hat{\mu}_n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_7.png"/></imageobject><textobject role="tex"><phrase>$\hat{\mu}_n$</phrase></textobject></inlinemediaobject></inlineequation> and <inlineequation><alt>$\hat{\mu}_n'$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_51.png"/></imageobject><textobject role="tex"><phrase>$\hat{\mu}_n'$</phrase></textobject></inlinemediaobject></inlineequation> being the means of the samples and variates. </para></description><method-group name="public member functions">
  1272. <method name="operator()"><type>void</type><template>
  1273. <template-type-parameter name="Args"/>
  1274. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1275. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1276. <method name="serialize"><type>void</type><template>
  1277. <template-type-parameter name="Archive"/>
  1278. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1279. </method-group>
  1280. <constructor><template>
  1281. <template-type-parameter name="Args"/>
  1282. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1283. </struct><struct name="density_impl"><template>
  1284. <template-type-parameter name="Sample"/>
  1285. </template><inherit access="public">accumulator_base</inherit><purpose>Histogram density estimator. </purpose><description><para>The histogram density estimator returns a histogram of the sample distribution. The positions and sizes of the bins are determined using a specifiable number of cached samples (cache_size). The range between the minimum and the maximum of the cached samples is subdivided into a specifiable number of bins (num_bins) of same size. Additionally, an under- and an overflow bin is added to capture future under- and overflow samples. Once the bins are determined, the cached samples and all subsequent samples are added to the correct bins. At the end, a range of std::pair is return, where each pair contains the position of the bin (lower bound) and the samples count (normalized with the total number of samples).</para><para>
  1286. </para></description><method-group name="public member functions">
  1287. <method name="operator()"><type>void</type><template>
  1288. <template-type-parameter name="Args"/>
  1289. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1290. <method name="result" cv="const"><type>result_type</type><template>
  1291. <template-type-parameter name="Args"/>
  1292. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter><description><para>
  1293. </para></description><requires><para>The number of samples must meet or exceed the cache size </para>
  1294. </requires></method>
  1295. <method name="serialize"><type>void</type><template>
  1296. <template-type-parameter name="Archive"/>
  1297. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1298. </method-group>
  1299. <constructor><template>
  1300. <template-type-parameter name="Args"/>
  1301. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1302. </struct><struct name="error_of_mean_impl"><template>
  1303. <template-type-parameter name="Sample"/>
  1304. <template-type-parameter name="Variance"/>
  1305. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1306. <method name="result" cv="const"><type>result_type</type><template>
  1307. <template-type-parameter name="Args"/>
  1308. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1309. </method-group>
  1310. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1311. </struct><struct name="extended_p_square_impl"><template>
  1312. <template-type-parameter name="Sample"/>
  1313. </template><inherit access="public">accumulator_base</inherit><purpose>Multiple quantile estimation with the extended <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm. </purpose><description><para>Extended <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm for estimation of several quantiles without storing samples. Assume that <inlineequation><alt>$m$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_43.png"/></imageobject><textobject role="tex"><phrase>$m$</phrase></textobject></inlinemediaobject></inlineequation> quantiles <inlineequation><alt>$\xi_{p_1}, \ldots, \xi_{p_m}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_44.png"/></imageobject><textobject role="tex"><phrase>$\xi_{p_1}, \ldots, \xi_{p_m}$</phrase></textobject></inlinemediaobject></inlineequation> are to be estimated. Instead of storing the whole sample cumulative distribution, the algorithm maintains only <inlineequation><alt>$m+2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_45.png"/></imageobject><textobject role="tex"><phrase>$m+2$</phrase></textobject></inlinemediaobject></inlineequation> principal markers and <inlineequation><alt>$m+1$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_46.png"/></imageobject><textobject role="tex"><phrase>$m+1$</phrase></textobject></inlinemediaobject></inlineequation> middle markers, whose positions are updated with each sample and whose heights are adjusted (if necessary) using a piecewise-parablic formula. The heights of these central markers are the current estimates of the quantiles and returned as an iterator range.</para><para>For further details, see</para><para>K. E. E. Raatikainen, Simultaneous estimation of several quantiles, Simulation, Volume 49, Number 4 (October), 1986, p. 159-164.</para><para>The extended <inlineequation><alt>$ P^2 $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_38.png"/></imageobject><textobject role="tex"><phrase>$ P^2 $</phrase></textobject></inlinemediaobject></inlineequation> algorithm generalizes the <inlineequation><alt>$ P^2 $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_38.png"/></imageobject><textobject role="tex"><phrase>$ P^2 $</phrase></textobject></inlinemediaobject></inlineequation> algorithm of</para><para>R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and histograms without storing observations, Communications of the ACM, Volume 28 (October), Number 10, 1985, p. 1076-1085.</para><para>
  1314. </para></description><method-group name="public member functions">
  1315. <method name="operator()"><type>void</type><template>
  1316. <template-type-parameter name="Args"/>
  1317. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1318. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1319. <method name="serialize"><type>void</type><template>
  1320. <template-type-parameter name="Archive"/>
  1321. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1322. </method-group>
  1323. <constructor><template>
  1324. <template-type-parameter name="Args"/>
  1325. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1326. </struct><struct name="extended_p_square_quantile_impl"><template>
  1327. <template-type-parameter name="Sample"/>
  1328. <template-type-parameter name="Impl1"/>
  1329. <template-type-parameter name="Impl2"/>
  1330. </template><inherit access="public">accumulator_base</inherit><purpose>Quantile estimation using the extended <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm for weighted and unweighted samples. </purpose><description><para>Uses the quantile estimates calculated by the extended <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm to compute intermediate quantile estimates by means of quadratic interpolation.</para><para>
  1331. </para></description><method-group name="public member functions">
  1332. <method name="result" cv="const"><type>result_type</type><template>
  1333. <template-type-parameter name="Args"/>
  1334. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1335. <method name="serialize"><type>void</type><template>
  1336. <template-type-parameter name="Archive"/>
  1337. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1338. </method-group>
  1339. <constructor><template>
  1340. <template-type-parameter name="Args"/>
  1341. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1342. </struct><struct name="immediate_mean_impl"><template>
  1343. <template-type-parameter name="Sample"/>
  1344. <template-type-parameter name="Tag"/>
  1345. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1346. <method name="operator()"><type>void</type><template>
  1347. <template-type-parameter name="Args"/>
  1348. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1349. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1350. <method name="serialize"><type>void</type><template>
  1351. <template-type-parameter name="Archive"/>
  1352. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1353. </method-group>
  1354. <constructor><template>
  1355. <template-type-parameter name="Args"/>
  1356. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1357. </struct><struct name="immediate_weighted_mean_impl"><template>
  1358. <template-type-parameter name="Sample"/>
  1359. <template-type-parameter name="Weight"/>
  1360. <template-type-parameter name="Tag"/>
  1361. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1362. <method name="operator()"><type>void</type><template>
  1363. <template-type-parameter name="Args"/>
  1364. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1365. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1366. <method name="serialize"><type>void</type><template>
  1367. <template-type-parameter name="Archive"/>
  1368. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1369. </method-group>
  1370. <constructor><template>
  1371. <template-type-parameter name="Args"/>
  1372. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1373. </struct><struct name="kurtosis_impl"><template>
  1374. <template-type-parameter name="Sample"/>
  1375. </template><inherit access="public">accumulator_base</inherit><purpose>Kurtosis estimation. </purpose><description><para>The kurtosis of a sample distribution is defined as the ratio of the 4th central moment and the square of the 2nd central moment (the variance) of the samples, minus 3. The term <inlineequation><alt>$ -3 $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_41.png"/></imageobject><textobject role="tex"><phrase>$ -3 $</phrase></textobject></inlinemediaobject></inlineequation> is added in order to ensure that the normal distribution has zero kurtosis. The kurtosis can also be expressed by the simple moments:</para><para><equation><title/><alt>\[ \hat{g}_2 = \frac {\widehat{m}_n^{(4)}-4\widehat{m}_n^{(3)}\hat{\mu}_n+6\widehat{m}_n^{(2)}\hat{\mu}_n^2-3\hat{\mu}_n^4} {\left(\widehat{m}_n^{(2)} - \hat{\mu}_n^{2}\right)^2} - 3, \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_42.png"/></imageobject><textobject role="tex"><phrase>\[ \hat{g}_2 = \frac {\widehat{m}_n^{(4)}-4\widehat{m}_n^{(3)}\hat{\mu}_n+6\widehat{m}_n^{(2)}\hat{\mu}_n^2-3\hat{\mu}_n^4} {\left(\widehat{m}_n^{(2)} - \hat{\mu}_n^{2}\right)^2} - 3, \]</phrase></textobject></mediaobject></equation></para><para>where <inlineequation><alt>$ \widehat{m}_n^{(i)} $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_30.png"/></imageobject><textobject role="tex"><phrase>$ \widehat{m}_n^{(i)} $</phrase></textobject></inlinemediaobject></inlineequation> are the <inlineequation><alt>$ i $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_31.png"/></imageobject><textobject role="tex"><phrase>$ i $</phrase></textobject></inlinemediaobject></inlineequation>-th moment and <inlineequation><alt>$ \hat{\mu}_n $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_32.png"/></imageobject><textobject role="tex"><phrase>$ \hat{\mu}_n $</phrase></textobject></inlinemediaobject></inlineequation> the mean (first moment) of the <inlineequation><alt>$ n $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_33.png"/></imageobject><textobject role="tex"><phrase>$ n $</phrase></textobject></inlinemediaobject></inlineequation> samples. </para></description><method-group name="public member functions">
  1376. <method name="result" cv="const"><type>result_type</type><template>
  1377. <template-type-parameter name="Args"/>
  1378. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1379. <method name="serialize"><type>void</type><template>
  1380. <template-type-parameter name="Archive"/>
  1381. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1382. </method-group>
  1383. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1384. </struct><struct name="lazy_variance_impl"><template>
  1385. <template-type-parameter name="Sample"/>
  1386. <template-type-parameter name="MeanFeature"/>
  1387. </template><inherit access="public">accumulator_base</inherit><purpose>Lazy calculation of variance. </purpose><description><para>Default sample variance implementation based on the second moment <inlineequation><alt>$ M_n^{(2)} $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_52.png"/></imageobject><textobject role="tex"><phrase>$ M_n^{(2)} $</phrase></textobject></inlinemediaobject></inlineequation> moment&lt;2&gt;, mean and count. <equation><title/><alt>\[ \sigma_n^2 = M_n^{(2)} - \mu_n^2. \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_53.png"/></imageobject><textobject role="tex"><phrase>\[ \sigma_n^2 = M_n^{(2)} - \mu_n^2. \]</phrase></textobject></mediaobject></equation> where <equation><title/><alt>\[ \mu_n = \frac{1}{n} \sum_{i = 1}^n x_i. \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_54.png"/></imageobject><textobject role="tex"><phrase>\[ \mu_n = \frac{1}{n} \sum_{i = 1}^n x_i. \]</phrase></textobject></mediaobject></equation> is the estimate of the sample mean and <inlineequation><alt>$n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_3.png"/></imageobject><textobject role="tex"><phrase>$n$</phrase></textobject></inlinemediaobject></inlineequation> is the number of samples. </para></description><method-group name="public member functions">
  1388. <method name="result" cv="const"><type>result_type</type><template>
  1389. <template-type-parameter name="Args"/>
  1390. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1391. <method name="serialize"><type>void</type><template>
  1392. <template-type-parameter name="Archive"/>
  1393. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1394. </method-group>
  1395. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1396. </struct><struct name="lazy_weighted_variance_impl"><template>
  1397. <template-type-parameter name="Sample"/>
  1398. <template-type-parameter name="Weight"/>
  1399. <template-type-parameter name="MeanFeature"/>
  1400. </template><inherit access="public">accumulator_base</inherit><purpose>Lazy calculation of variance of weighted samples. </purpose><description><para>The default implementation of the variance of weighted samples is based on the second moment <inlineequation><alt>$\widehat{m}_n^{(2)}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_0.png"/></imageobject><textobject role="tex"><phrase>$\widehat{m}_n^{(2)}$</phrase></textobject></inlinemediaobject></inlineequation> (weighted_moment&lt;2&gt;) and the mean <inlineequation><alt>$ \hat{\mu}_n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_1.png"/></imageobject><textobject role="tex"><phrase>$ \hat{\mu}_n$</phrase></textobject></inlinemediaobject></inlineequation> (weighted_mean): <equation><title/><alt>\[ \hat{\sigma}_n^2 = \widehat{m}_n^{(2)}-\hat{\mu}_n^2, \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_2.png"/></imageobject><textobject role="tex"><phrase>\[ \hat{\sigma}_n^2 = \widehat{m}_n^{(2)}-\hat{\mu}_n^2, \]</phrase></textobject></mediaobject></equation> where <inlineequation><alt>$n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_3.png"/></imageobject><textobject role="tex"><phrase>$n$</phrase></textobject></inlinemediaobject></inlineequation> is the number of samples. </para></description><method-group name="public member functions">
  1401. <method name="result" cv="const"><type>result_type</type><template>
  1402. <template-type-parameter name="Args"/>
  1403. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1404. </method-group>
  1405. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1406. </struct><struct name="max_impl"><template>
  1407. <template-type-parameter name="Sample"/>
  1408. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1409. <method name="operator()"><type>void</type><template>
  1410. <template-type-parameter name="Args"/>
  1411. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1412. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1413. <method name="serialize"><type>void</type><template>
  1414. <template-type-parameter name="Archive"/>
  1415. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1416. </method-group>
  1417. <constructor><template>
  1418. <template-type-parameter name="Args"/>
  1419. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1420. </struct><struct name="mean_impl"><template>
  1421. <template-type-parameter name="Sample"/>
  1422. <template-type-parameter name="SumFeature"/>
  1423. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1424. <method name="result" cv="const"><type>result_type</type><template>
  1425. <template-type-parameter name="Args"/>
  1426. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1427. <method name="serialize"><type>void</type><template>
  1428. <template-type-parameter name="Archive"/>
  1429. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1430. </method-group>
  1431. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1432. </struct><struct name="median_impl"><template>
  1433. <template-type-parameter name="Sample"/>
  1434. </template><inherit access="public">accumulator_base</inherit><purpose>Median estimation based on the <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> quantile estimator. </purpose><description><para>The <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm is invoked with a quantile probability of 0.5. </para></description><method-group name="public member functions">
  1435. <method name="result" cv="const"><type>result_type</type><template>
  1436. <template-type-parameter name="Args"/>
  1437. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1438. <method name="serialize"><type>void</type><template>
  1439. <template-type-parameter name="Archive"/>
  1440. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1441. </method-group>
  1442. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1443. </struct><struct name="min_impl"><template>
  1444. <template-type-parameter name="Sample"/>
  1445. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1446. <method name="operator()"><type>void</type><template>
  1447. <template-type-parameter name="Args"/>
  1448. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1449. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1450. <method name="serialize"><type>void</type><template>
  1451. <template-type-parameter name="Archive"/>
  1452. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1453. </method-group>
  1454. <constructor><template>
  1455. <template-type-parameter name="Args"/>
  1456. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1457. </struct><struct name="moment_impl"><template>
  1458. <template-type-parameter name="N"/>
  1459. <template-type-parameter name="Sample"/>
  1460. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1461. <method name="BOOST_MPL_ASSERT_RELATION"><type/><parameter name=""><paramtype>N::value</paramtype></parameter><parameter name=""><paramtype>0</paramtype></parameter></method>
  1462. <method name="operator()"><type>void</type><template>
  1463. <template-type-parameter name="Args"/>
  1464. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1465. <method name="result" cv="const"><type>result_type</type><template>
  1466. <template-type-parameter name="Args"/>
  1467. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1468. <method name="serialize"><type>void</type><template>
  1469. <template-type-parameter name="Archive"/>
  1470. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1471. </method-group>
  1472. <constructor><template>
  1473. <template-type-parameter name="Args"/>
  1474. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1475. </struct><struct name="non_coherent_tail_mean_impl"><template>
  1476. <template-type-parameter name="Sample"/>
  1477. <template-type-parameter name="LeftRight"/>
  1478. </template><inherit access="public">accumulator_base</inherit><purpose>Estimation of the (non-coherent) tail mean based on order statistics (for both left and right tails) </purpose><description><para>An estimation of the non-coherent tail mean <inlineequation><alt>$\widehat{NCTM}_{n,\alpha}(X)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_14.png"/></imageobject><textobject role="tex"><phrase>$\widehat{NCTM}_{n,\alpha}(X)$</phrase></textobject></inlinemediaobject></inlineequation> is given by the mean of the <inlineequation><alt>$\lceil n\alpha\rceil$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_65.png"/></imageobject><textobject role="tex"><phrase>$\lceil n\alpha\rceil$</phrase></textobject></inlinemediaobject></inlineequation> smallest samples (left tail) or the mean of the <inlineequation><alt>$\lceil n(1-\alpha)\rceil$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_60.png"/></imageobject><textobject role="tex"><phrase>$\lceil n(1-\alpha)\rceil$</phrase></textobject></inlinemediaobject></inlineequation> largest samples (right tail), <inlineequation><alt>$n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_3.png"/></imageobject><textobject role="tex"><phrase>$n$</phrase></textobject></inlinemediaobject></inlineequation> being the total number of samples and <inlineequation><alt>$\alpha$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_20.png"/></imageobject><textobject role="tex"><phrase>$\alpha$</phrase></textobject></inlinemediaobject></inlineequation> the quantile level:</para><para><equation><title/><alt>\[ \widehat{NCTM}_{n,\alpha}^{\mathrm{right}}(X) = \frac{1}{\lceil n(1-\alpha)\rceil} \sum_{i=\lceil \alpha n \rceil}^n X_{i:n} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_70.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{NCTM}_{n,\alpha}^{\mathrm{right}}(X) = \frac{1}{\lceil n(1-\alpha)\rceil} \sum_{i=\lceil \alpha n \rceil}^n X_{i:n} \]</phrase></textobject></mediaobject></equation></para><para><equation><title/><alt>\[ \widehat{NCTM}_{n,\alpha}^{\mathrm{left}}(X) = \frac{1}{\lceil n\alpha\rceil} \sum_{i=1}^{\lceil \alpha n \rceil} X_{i:n} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_71.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{NCTM}_{n,\alpha}^{\mathrm{left}}(X) = \frac{1}{\lceil n\alpha\rceil} \sum_{i=1}^{\lceil \alpha n \rceil} X_{i:n} \]</phrase></textobject></mediaobject></equation></para><para>It thus requires the caching of at least the <inlineequation><alt>$\lceil n\alpha\rceil$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_65.png"/></imageobject><textobject role="tex"><phrase>$\lceil n\alpha\rceil$</phrase></textobject></inlinemediaobject></inlineequation> smallest or the <inlineequation><alt>$\lceil n(1-\alpha)\rceil$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_60.png"/></imageobject><textobject role="tex"><phrase>$\lceil n(1-\alpha)\rceil$</phrase></textobject></inlinemediaobject></inlineequation> largest samples.</para><para>
  1479. </para></description><method-group name="public member functions">
  1480. <method name="result" cv="const"><type>result_type</type><template>
  1481. <template-type-parameter name="Args"/>
  1482. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1483. <method name="serialize"><type>void</type><template>
  1484. <template-type-parameter name="Archive"/>
  1485. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1486. </method-group>
  1487. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1488. </struct><struct name="non_coherent_weighted_tail_mean_impl"><template>
  1489. <template-type-parameter name="Sample"/>
  1490. <template-type-parameter name="Weight"/>
  1491. <template-type-parameter name="LeftRight"/>
  1492. </template><inherit access="public">accumulator_base</inherit><purpose>Estimation of the (non-coherent) weighted tail mean based on order statistics (for both left and right tails) </purpose><description><para>An estimation of the non-coherent, weighted tail mean <inlineequation><alt>$\widehat{NCTM}_{n,\alpha}(X)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_14.png"/></imageobject><textobject role="tex"><phrase>$\widehat{NCTM}_{n,\alpha}(X)$</phrase></textobject></inlinemediaobject></inlineequation> is given by the weighted mean of the</para><para><equation><title/><alt>\[ \lambda = \inf\left\{ l \left| \frac{1}{\bar{w}_n}\sum_{i=1}^{l} w_i \geq \alpha \right. \right\} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_10.png"/></imageobject><textobject role="tex"><phrase>\[ \lambda = \inf\left\{ l \left| \frac{1}{\bar{w}_n}\sum_{i=1}^{l} w_i \geq \alpha \right. \right\} \]</phrase></textobject></mediaobject></equation></para><para>smallest samples (left tail) or the weighted mean of the</para><para><equation><title/><alt>\[ n + 1 - \rho = n + 1 - \sup\left\{ r \left| \frac{1}{\bar{w}_n}\sum_{i=r}^{n} w_i \geq (1 - \alpha) \right. \right\} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_11.png"/></imageobject><textobject role="tex"><phrase>\[ n + 1 - \rho = n + 1 - \sup\left\{ r \left| \frac{1}{\bar{w}_n}\sum_{i=r}^{n} w_i \geq (1 - \alpha) \right. \right\} \]</phrase></textobject></mediaobject></equation></para><para>largest samples (right tail) above a quantile <inlineequation><alt>$\hat{q}_{\alpha}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_25.png"/></imageobject><textobject role="tex"><phrase>$\hat{q}_{\alpha}$</phrase></textobject></inlinemediaobject></inlineequation> of level <inlineequation><alt>$\alpha$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_20.png"/></imageobject><textobject role="tex"><phrase>$\alpha$</phrase></textobject></inlinemediaobject></inlineequation>, <inlineequation><alt>$n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_3.png"/></imageobject><textobject role="tex"><phrase>$n$</phrase></textobject></inlinemediaobject></inlineequation> being the total number of sample and <inlineequation><alt>$\bar{w}_n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_5.png"/></imageobject><textobject role="tex"><phrase>$\bar{w}_n$</phrase></textobject></inlinemediaobject></inlineequation> the sum of all <inlineequation><alt>$n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_3.png"/></imageobject><textobject role="tex"><phrase>$n$</phrase></textobject></inlinemediaobject></inlineequation> weights:</para><para><equation><title/><alt>\[ \widehat{NCTM}_{n,\alpha}^{\mathrm{left}}(X) = \frac{\sum_{i=1}^{\lambda} w_i X_{i:n}}{\sum_{i=1}^{\lambda} w_i}, \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_26.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{NCTM}_{n,\alpha}^{\mathrm{left}}(X) = \frac{\sum_{i=1}^{\lambda} w_i X_{i:n}}{\sum_{i=1}^{\lambda} w_i}, \]</phrase></textobject></mediaobject></equation></para><para><equation><title/><alt>\[ \widehat{NCTM}_{n,\alpha}^{\mathrm{right}}(X) = \frac{\sum_{i=\rho}^n w_i X_{i:n}}{\sum_{i=\rho}^n w_i}. \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_27.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{NCTM}_{n,\alpha}^{\mathrm{right}}(X) = \frac{\sum_{i=\rho}^n w_i X_{i:n}}{\sum_{i=\rho}^n w_i}. \]</phrase></textobject></mediaobject></equation></para><para>
  1493. </para></description><method-group name="public member functions">
  1494. <method name="result" cv="const"><type>result_type</type><template>
  1495. <template-type-parameter name="Args"/>
  1496. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1497. </method-group>
  1498. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1499. </struct><struct name="p_square_cumulative_distribution_impl"><template>
  1500. <template-type-parameter name="Sample"/>
  1501. </template><inherit access="public">accumulator_base</inherit><purpose>Histogram calculation of the cumulative distribution with the <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm. </purpose><description><para>A histogram of the sample cumulative distribution is computed dynamically without storing samples based on the <inlineequation><alt>$ P^2 $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_38.png"/></imageobject><textobject role="tex"><phrase>$ P^2 $</phrase></textobject></inlinemediaobject></inlineequation> algorithm. The returned histogram has a specifiable amount (num_cells) equiprobable (and not equal-sized) cells.</para><para>For further details, see</para><para>R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and histograms without storing observations, Communications of the ACM, Volume 28 (October), Number 10, 1985, p. 1076-1085.</para><para>
  1502. </para></description><method-group name="public member functions">
  1503. <method name="operator()"><type>void</type><template>
  1504. <template-type-parameter name="Args"/>
  1505. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1506. <method name="result" cv="const"><type>result_type</type><template>
  1507. <template-type-parameter name="Args"/>
  1508. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1509. <method name="serialize"><type>void</type><template>
  1510. <template-type-parameter name="Archive"/>
  1511. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1512. </method-group>
  1513. <constructor><template>
  1514. <template-type-parameter name="Args"/>
  1515. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1516. </struct><struct name="p_square_quantile_impl"><template>
  1517. <template-type-parameter name="Sample"/>
  1518. <template-type-parameter name="Impl"/>
  1519. </template><inherit access="public">accumulator_base</inherit><purpose>Single quantile estimation with the <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm. </purpose><description><para>The <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm estimates a quantile dynamically without storing samples. Instead of storing the whole sample cumulative distribution, only five points (markers) are stored. The heights of these markers are the minimum and the maximum of the samples and the current estimates of the <inlineequation><alt>$(p/2)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_35.png"/></imageobject><textobject role="tex"><phrase>$(p/2)$</phrase></textobject></inlinemediaobject></inlineequation>-, <inlineequation><alt>$p$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_36.png"/></imageobject><textobject role="tex"><phrase>$p$</phrase></textobject></inlinemediaobject></inlineequation>- and <inlineequation><alt>$(1+p)/2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_37.png"/></imageobject><textobject role="tex"><phrase>$(1+p)/2$</phrase></textobject></inlinemediaobject></inlineequation>-quantiles. Their positions are equal to the number of samples that are smaller or equal to the markers. Each time a new samples is recorded, the positions of the markers are updated and if necessary their heights are adjusted using a piecewise- parabolic formula.</para><para>For further details, see</para><para>R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and histograms without storing observations, Communications of the ACM, Volume 28 (October), Number 10, 1985, p. 1076-1085.</para><para>
  1520. </para></description><method-group name="public member functions">
  1521. <method name="operator()"><type>void</type><template>
  1522. <template-type-parameter name="Args"/>
  1523. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1524. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1525. <method name="serialize"><type>void</type><template>
  1526. <template-type-parameter name="Archive"/>
  1527. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1528. </method-group>
  1529. <constructor><template>
  1530. <template-type-parameter name="Args"/>
  1531. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1532. </struct><struct name="peaks_over_threshold_prob_impl"><template>
  1533. <template-type-parameter name="Sample"/>
  1534. <template-type-parameter name="LeftRight"/>
  1535. </template><inherit access="public">accumulator_base</inherit><purpose>Peaks over Threshold Method for Quantile and Tail Mean Estimation. </purpose><description><para><para><emphasis role="bold">See Also:</emphasis><para><classname alt="boost::accumulators::impl::peaks_over_threshold_impl">peaks_over_threshold_impl</classname></para>
  1536. </para>
  1537. </para></description><method-group name="public member functions">
  1538. <method name="operator()"><type>void</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1539. <method name="result" cv="const"><type>result_type</type><template>
  1540. <template-type-parameter name="Args"/>
  1541. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1542. <method name="serialize"><type>void</type><template>
  1543. <template-type-parameter name="Archive"/>
  1544. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1545. </method-group>
  1546. <constructor><template>
  1547. <template-type-parameter name="Args"/>
  1548. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1549. </struct><struct name="pot_quantile_impl"><template>
  1550. <template-type-parameter name="Sample"/>
  1551. <template-type-parameter name="Impl"/>
  1552. <template-type-parameter name="LeftRight"/>
  1553. </template><inherit access="public">accumulator_base</inherit><purpose>Quantile Estimation based on Peaks over Threshold Method (for both left and right tails) </purpose><description><para>Computes an estimate <equation><title/><alt>\[ \hat{q}_{\alpha} = \bar{u} + \frac{\bar{\beta}}{\xi}\left[(1-\alpha)^{-\xi}-1\right] \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_89.png"/></imageobject><textobject role="tex"><phrase>\[ \hat{q}_{\alpha} = \bar{u} + \frac{\bar{\beta}}{\xi}\left[(1-\alpha)^{-\xi}-1\right] \]</phrase></textobject></mediaobject></equation> for a right or left extreme quantile, <inlineequation><alt>$\bar[u]$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_86.png"/></imageobject><textobject role="tex"><phrase>$\bar[u]$</phrase></textobject></inlinemediaobject></inlineequation>, <inlineequation><alt>$\bar{\beta}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_87.png"/></imageobject><textobject role="tex"><phrase>$\bar{\beta}$</phrase></textobject></inlinemediaobject></inlineequation> and <inlineequation><alt>$\xi$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_88.png"/></imageobject><textobject role="tex"><phrase>$\xi$</phrase></textobject></inlinemediaobject></inlineequation> being the parameters of the generalized Pareto distribution that approximates the right tail of the distribution (or the mirrored left tail, in case the left tail is used). In the latter case, the result is mirrored back, yielding the correct result. </para></description><method-group name="public member functions">
  1554. <method name="result" cv="const"><type>result_type</type><template>
  1555. <template-type-parameter name="Args"/>
  1556. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1557. <method name="serialize"><type>void</type><template>
  1558. <template-type-parameter name="Archive"/>
  1559. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1560. </method-group>
  1561. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1562. </struct><struct name="pot_tail_mean_impl"><template>
  1563. <template-type-parameter name="Sample"/>
  1564. <template-type-parameter name="Impl"/>
  1565. <template-type-parameter name="LeftRight"/>
  1566. </template><inherit access="public">accumulator_base</inherit><purpose>Estimation of the (coherent) tail mean based on the peaks over threshold method (for both left and right tails) </purpose><description><para>Computes an estimate for the (coherent) tail mean <equation><title/><alt>\[ \widehat{CTM}_{\alpha} = \hat{q}_{\alpha} - \frac{\bar{\beta}}{\xi-1}(1-\alpha)^{-\xi}, \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_85.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{CTM}_{\alpha} = \hat{q}_{\alpha} - \frac{\bar{\beta}}{\xi-1}(1-\alpha)^{-\xi}, \]</phrase></textobject></mediaobject></equation> where <inlineequation><alt>$\bar[u]$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_86.png"/></imageobject><textobject role="tex"><phrase>$\bar[u]$</phrase></textobject></inlinemediaobject></inlineequation>, <inlineequation><alt>$\bar{\beta}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_87.png"/></imageobject><textobject role="tex"><phrase>$\bar{\beta}$</phrase></textobject></inlinemediaobject></inlineequation> and <inlineequation><alt>$\xi$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_88.png"/></imageobject><textobject role="tex"><phrase>$\xi$</phrase></textobject></inlinemediaobject></inlineequation> are the parameters of the generalized Pareto distribution that approximates the right tail of the distribution (or the mirrored left tail, in case the left tail is used). In the latter case, the result is mirrored back, yielding the correct result. </para></description><method-group name="public member functions">
  1567. <method name="result" cv="const"><type>result_type</type><template>
  1568. <template-type-parameter name="Args"/>
  1569. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1570. <method name="serialize"><type>void</type><template>
  1571. <template-type-parameter name="Archive"/>
  1572. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1573. </method-group>
  1574. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1575. </struct><struct name="rolling_count_impl"><template>
  1576. <template-type-parameter name="Sample"/>
  1577. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1578. <method name="result" cv="const"><type>result_type</type><template>
  1579. <template-type-parameter name="Args"/>
  1580. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1581. <method name="serialize"><type>void</type><template>
  1582. <template-type-parameter name="Archive"/>
  1583. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1584. </method-group>
  1585. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1586. </struct><struct name="rolling_mean_impl"><template>
  1587. <template-type-parameter name="Sample"/>
  1588. </template></struct><struct name="rolling_sum_impl"><template>
  1589. <template-type-parameter name="Sample"/>
  1590. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1591. <method name="operator()"><type>void</type><template>
  1592. <template-type-parameter name="Args"/>
  1593. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1594. <method name="result" cv="const"><type>result_type</type><template>
  1595. <template-type-parameter name="Args"/>
  1596. </template><parameter name=""><paramtype>Args const &amp;</paramtype></parameter></method>
  1597. <method name="serialize"><type>void</type><template>
  1598. <template-type-parameter name="Archive"/>
  1599. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1600. </method-group>
  1601. <constructor><template>
  1602. <template-type-parameter name="Args"/>
  1603. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1604. </struct><struct name="rolling_window_impl"><template>
  1605. <template-type-parameter name="Sample"/>
  1606. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1607. <method name="result" cv="const"><type>result_type</type><template>
  1608. <template-type-parameter name="Args"/>
  1609. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1610. <method name="serialize"><type>void</type><template>
  1611. <template-type-parameter name="Archive"/>
  1612. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1613. </method-group>
  1614. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1615. </struct><struct name="rolling_window_plus1_impl"><template>
  1616. <template-type-parameter name="Sample"/>
  1617. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1618. <method name="operator()"><type>void</type><template>
  1619. <template-type-parameter name="Args"/>
  1620. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1621. <method name="full" cv="const"><type>bool</type></method>
  1622. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1623. <method name="serialize"><type>void</type><template>
  1624. <template-type-parameter name="Archive"/>
  1625. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="version"><paramtype>const unsigned int</paramtype></parameter></method>
  1626. </method-group>
  1627. <constructor><template>
  1628. <template-type-parameter name="Args"/>
  1629. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1630. <constructor><parameter name="that"><paramtype><classname>rolling_window_plus1_impl</classname> const &amp;</paramtype></parameter></constructor>
  1631. <copy-assignment><type><classname>rolling_window_plus1_impl</classname> &amp;</type><parameter name="that"><paramtype><classname>rolling_window_plus1_impl</classname> const &amp;</paramtype></parameter></copy-assignment>
  1632. </struct><struct name="skewness_impl"><template>
  1633. <template-type-parameter name="Sample"/>
  1634. </template><inherit access="public">accumulator_base</inherit><purpose>Skewness estimation. </purpose><description><para>The skewness of a sample distribution is defined as the ratio of the 3rd central moment and the <inlineequation><alt>$ 3/2 $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_28.png"/></imageobject><textobject role="tex"><phrase>$ 3/2 $</phrase></textobject></inlinemediaobject></inlineequation>-th power of the 2nd central moment (the variance) of the samples 3. The skewness can also be expressed by the simple moments:</para><para><equation><title/><alt>\[ \hat{g}_1 = \frac {\widehat{m}_n^{(3)}-3\widehat{m}_n^{(2)}\hat{\mu}_n+2\hat{\mu}_n^3} {\left(\widehat{m}_n^{(2)} - \hat{\mu}_n^{2}\right)^{3/2}} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_29.png"/></imageobject><textobject role="tex"><phrase>\[ \hat{g}_1 = \frac {\widehat{m}_n^{(3)}-3\widehat{m}_n^{(2)}\hat{\mu}_n+2\hat{\mu}_n^3} {\left(\widehat{m}_n^{(2)} - \hat{\mu}_n^{2}\right)^{3/2}} \]</phrase></textobject></mediaobject></equation></para><para>where <inlineequation><alt>$ \widehat{m}_n^{(i)} $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_30.png"/></imageobject><textobject role="tex"><phrase>$ \widehat{m}_n^{(i)} $</phrase></textobject></inlinemediaobject></inlineequation> are the <inlineequation><alt>$ i $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_31.png"/></imageobject><textobject role="tex"><phrase>$ i $</phrase></textobject></inlinemediaobject></inlineequation>-th moment and <inlineequation><alt>$ \hat{\mu}_n $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_32.png"/></imageobject><textobject role="tex"><phrase>$ \hat{\mu}_n $</phrase></textobject></inlinemediaobject></inlineequation> the mean (first moment) of the <inlineequation><alt>$ n $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_33.png"/></imageobject><textobject role="tex"><phrase>$ n $</phrase></textobject></inlinemediaobject></inlineequation> samples. </para></description><method-group name="public member functions">
  1635. <method name="result" cv="const"><type>result_type</type><template>
  1636. <template-type-parameter name="Args"/>
  1637. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1638. <method name="serialize"><type>void</type><template>
  1639. <template-type-parameter name="Archive"/>
  1640. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1641. </method-group>
  1642. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1643. </struct><struct name="sum_impl"><template>
  1644. <template-type-parameter name="Sample"/>
  1645. <template-type-parameter name="Tag"/>
  1646. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1647. <method name="operator()"><type>void</type><template>
  1648. <template-type-parameter name="Args"/>
  1649. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1650. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1651. <method name="serialize"><type>void</type><template>
  1652. <template-type-parameter name="Archive"/>
  1653. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1654. </method-group>
  1655. <constructor><template>
  1656. <template-type-parameter name="Args"/>
  1657. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1658. </struct><struct name="sum_kahan_impl"><template>
  1659. <template-type-parameter name="Sample"/>
  1660. <template-type-parameter name="Tag"/>
  1661. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1662. <method name="operator()"><type>void</type><template>
  1663. <template-type-parameter name="Args"/>
  1664. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1665. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1666. <method name="serialize"><type>void</type><template>
  1667. <template-type-parameter name="Archive"/>
  1668. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1669. </method-group>
  1670. <constructor><template>
  1671. <template-type-parameter name="Args"/>
  1672. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter><purpose>Kahan summation algorithm. </purpose><description><para>The Kahan summation algorithm reduces the numerical error obtained with standard sequential sum. </para></description></constructor>
  1673. </struct><struct name="tail_impl"><template>
  1674. <template-type-parameter name="Sample"/>
  1675. <template-type-parameter name="LeftRight"/>
  1676. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1677. <method name="BOOST_MPL_ASSERT"><type/><parameter name=""><paramtype>(mpl::or_&lt; is_same&lt; LeftRight, <classname>right</classname> &gt;, is_same&lt; LeftRight, <classname>left</classname> &gt; &gt;)</paramtype></parameter></method>
  1678. <method name="operator()"><type>void</type><template>
  1679. <template-type-parameter name="Args"/>
  1680. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1681. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1682. <method name="serialize"><type>void</type><template>
  1683. <template-type-parameter name="Archive"/>
  1684. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1685. </method-group>
  1686. <constructor><template>
  1687. <template-type-parameter name="Args"/>
  1688. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1689. <constructor><parameter name="that"><paramtype><classname>tail_impl</classname> const &amp;</paramtype></parameter></constructor>
  1690. <method-group name="private member functions">
  1691. <method name="assign"><type>void</type><template>
  1692. <template-type-parameter name="Args"/>
  1693. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter><parameter name="index"><paramtype>std::size_t</paramtype></parameter></method>
  1694. </method-group>
  1695. </struct><struct name="tail_quantile_impl"><template>
  1696. <template-type-parameter name="Sample"/>
  1697. <template-type-parameter name="LeftRight"/>
  1698. </template><inherit access="public">accumulator_base</inherit><purpose>Tail quantile estimation based on order statistics (for both left and right tails) </purpose><description><para>The estimation of a tail quantile <inlineequation><alt>$\hat{q}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_19.png"/></imageobject><textobject role="tex"><phrase>$\hat{q}$</phrase></textobject></inlinemediaobject></inlineequation> with level <inlineequation><alt>$\alpha$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_20.png"/></imageobject><textobject role="tex"><phrase>$\alpha$</phrase></textobject></inlinemediaobject></inlineequation> based on order statistics requires the caching of at least the <inlineequation><alt>$\lceil n\alpha\rceil$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_65.png"/></imageobject><textobject role="tex"><phrase>$\lceil n\alpha\rceil$</phrase></textobject></inlinemediaobject></inlineequation> smallest or the <inlineequation><alt>$\lceil n(1-\alpha)\rceil$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_60.png"/></imageobject><textobject role="tex"><phrase>$\lceil n(1-\alpha)\rceil$</phrase></textobject></inlinemediaobject></inlineequation> largest samples, <inlineequation><alt>$n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_3.png"/></imageobject><textobject role="tex"><phrase>$n$</phrase></textobject></inlinemediaobject></inlineequation> being the total number of samples. The largest of the <inlineequation><alt>$\lceil n\alpha\rceil$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_65.png"/></imageobject><textobject role="tex"><phrase>$\lceil n\alpha\rceil$</phrase></textobject></inlinemediaobject></inlineequation> smallest samples or the smallest of the <inlineequation><alt>$\lceil n(1-\alpha)\rceil$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_60.png"/></imageobject><textobject role="tex"><phrase>$\lceil n(1-\alpha)\rceil$</phrase></textobject></inlinemediaobject></inlineequation> largest samples provides an estimate for the quantile:</para><para><equation><title/><alt>\[ \hat{q}_{n,\alpha} = X_{\lceil \alpha n \rceil:n} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_66.png"/></imageobject><textobject role="tex"><phrase>\[ \hat{q}_{n,\alpha} = X_{\lceil \alpha n \rceil:n} \]</phrase></textobject></mediaobject></equation></para><para>
  1699. </para></description><method-group name="public member functions">
  1700. <method name="result" cv="const"><type>result_type</type><template>
  1701. <template-type-parameter name="Args"/>
  1702. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1703. <method name="serialize"><type>void</type><template>
  1704. <template-type-parameter name="Archive"/>
  1705. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1706. </method-group>
  1707. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1708. </struct><struct name="tail_variate_impl"><template>
  1709. <template-type-parameter name="VariateType"/>
  1710. <template-type-parameter name="VariateTag"/>
  1711. <template-type-parameter name="LeftRight"/>
  1712. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1713. <method name="assign"><type>void</type><template>
  1714. <template-type-parameter name="Args"/>
  1715. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter><parameter name="index"><paramtype>std::size_t</paramtype></parameter></method>
  1716. <method name="result" cv="const"><type>result_type</type><template>
  1717. <template-type-parameter name="Args"/>
  1718. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1719. </method-group>
  1720. <constructor><template>
  1721. <template-type-parameter name="Args"/>
  1722. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1723. <method-group name="private member functions">
  1724. <method name="do_result" cv="const"><type>result_type</type><template>
  1725. <template-type-parameter name="TailRng"/>
  1726. </template><parameter name="rng"><paramtype>TailRng const &amp;</paramtype></parameter></method>
  1727. <method name="serialize"><type>void</type><template>
  1728. <template-type-parameter name="Archive"/>
  1729. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1730. </method-group>
  1731. </struct><struct name="tail_variate_means_impl"><template>
  1732. <template-type-parameter name="Sample"/>
  1733. <template-type-parameter name="Impl"/>
  1734. <template-type-parameter name="LeftRight"/>
  1735. <template-type-parameter name="VariateTag"/>
  1736. </template><inherit access="public">accumulator_base</inherit><purpose>Estimation of the absolute and relative tail variate means (for both left and right tails) </purpose><description><para>For all <inlineequation><alt>$j$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_9.png"/></imageobject><textobject role="tex"><phrase>$j$</phrase></textobject></inlinemediaobject></inlineequation>-th variates associated to the <inlineequation><alt>$\lceil n(1-\alpha)\rceil$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_60.png"/></imageobject><textobject role="tex"><phrase>$\lceil n(1-\alpha)\rceil$</phrase></textobject></inlinemediaobject></inlineequation> largest samples (or the <inlineequation><alt>$\lceil n(1-\alpha)\rceil$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_60.png"/></imageobject><textobject role="tex"><phrase>$\lceil n(1-\alpha)\rceil$</phrase></textobject></inlinemediaobject></inlineequation> smallest samples in case of the left tail), the absolute tail means <inlineequation><alt>$\widehat{ATM}_{n,\alpha}(X, j)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_12.png"/></imageobject><textobject role="tex"><phrase>$\widehat{ATM}_{n,\alpha}(X, j)$</phrase></textobject></inlinemediaobject></inlineequation> are computed and returned as an iterator range. Alternatively, the relative tail means <inlineequation><alt>$\widehat{RTM}_{n,\alpha}(X, j)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_13.png"/></imageobject><textobject role="tex"><phrase>$\widehat{RTM}_{n,\alpha}(X, j)$</phrase></textobject></inlinemediaobject></inlineequation> are returned, which are the absolute tail means normalized with the (non-coherent) sample tail mean <inlineequation><alt>$\widehat{NCTM}_{n,\alpha}(X)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_14.png"/></imageobject><textobject role="tex"><phrase>$\widehat{NCTM}_{n,\alpha}(X)$</phrase></textobject></inlinemediaobject></inlineequation>.</para><para><equation><title/><alt>\[ \widehat{ATM}_{n,\alpha}^{\mathrm{right}}(X, j) = \frac{1}{\lceil n(1-\alpha) \rceil} \sum_{i=\lceil \alpha n \rceil}^n \xi_{j,i} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_61.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{ATM}_{n,\alpha}^{\mathrm{right}}(X, j) = \frac{1}{\lceil n(1-\alpha) \rceil} \sum_{i=\lceil \alpha n \rceil}^n \xi_{j,i} \]</phrase></textobject></mediaobject></equation></para><para><equation><title/><alt>\[ \widehat{ATM}_{n,\alpha}^{\mathrm{left}}(X, j) = \frac{1}{\lceil n\alpha \rceil} \sum_{i=1}^{\lceil n\alpha \rceil} \xi_{j,i} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_62.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{ATM}_{n,\alpha}^{\mathrm{left}}(X, j) = \frac{1}{\lceil n\alpha \rceil} \sum_{i=1}^{\lceil n\alpha \rceil} \xi_{j,i} \]</phrase></textobject></mediaobject></equation></para><para><equation><title/><alt>\[ \widehat{RTM}_{n,\alpha}^{\mathrm{right}}(X, j) = \frac{\sum_{i=\lceil n\alpha \rceil}^n \xi_{j,i}} {\lceil n(1-\alpha)\rceil\widehat{NCTM}_{n,\alpha}^{\mathrm{right}}(X)} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_63.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{RTM}_{n,\alpha}^{\mathrm{right}}(X, j) = \frac{\sum_{i=\lceil n\alpha \rceil}^n \xi_{j,i}} {\lceil n(1-\alpha)\rceil\widehat{NCTM}_{n,\alpha}^{\mathrm{right}}(X)} \]</phrase></textobject></mediaobject></equation></para><para><equation><title/><alt>\[ \widehat{RTM}_{n,\alpha}^{\mathrm{left}}(X, j) = \frac{\sum_{i=1}^{\lceil n\alpha \rceil} \xi_{j,i}} {\lceil n\alpha\rceil\widehat{NCTM}_{n,\alpha}^{\mathrm{left}}(X)} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_64.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{RTM}_{n,\alpha}^{\mathrm{left}}(X, j) = \frac{\sum_{i=1}^{\lceil n\alpha \rceil} \xi_{j,i}} {\lceil n\alpha\rceil\widehat{NCTM}_{n,\alpha}^{\mathrm{left}}(X)} \]</phrase></textobject></mediaobject></equation> </para></description><method-group name="public member functions">
  1737. <method name="result" cv="const"><type>result_type</type><template>
  1738. <template-type-parameter name="Args"/>
  1739. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1740. <method name="serialize"><type>void</type><template>
  1741. <template-type-parameter name="Archive"/>
  1742. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1743. </method-group>
  1744. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1745. </struct><struct name="variance_impl"><template>
  1746. <template-type-parameter name="Sample"/>
  1747. <template-type-parameter name="MeanFeature"/>
  1748. <template-type-parameter name="Tag"/>
  1749. </template><inherit access="public">accumulator_base</inherit><purpose>Iterative calculation of variance. </purpose><description><para>Iterative calculation of sample variance <inlineequation><alt>$\sigma_n^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_55.png"/></imageobject><textobject role="tex"><phrase>$\sigma_n^2$</phrase></textobject></inlinemediaobject></inlineequation> according to the formula <equation><title/><alt>\[ \sigma_n^2 = \frac{1}{n} \sum_{i = 1}^n (x_i - \mu_n)^2 = \frac{n-1}{n} \sigma_{n-1}^2 + \frac{1}{n-1}(x_n - \mu_n)^2. \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_56.png"/></imageobject><textobject role="tex"><phrase>\[ \sigma_n^2 = \frac{1}{n} \sum_{i = 1}^n (x_i - \mu_n)^2 = \frac{n-1}{n} \sigma_{n-1}^2 + \frac{1}{n-1}(x_n - \mu_n)^2. \]</phrase></textobject></mediaobject></equation> where <equation><title/><alt>\[ \mu_n = \frac{1}{n} \sum_{i = 1}^n x_i. \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_54.png"/></imageobject><textobject role="tex"><phrase>\[ \mu_n = \frac{1}{n} \sum_{i = 1}^n x_i. \]</phrase></textobject></mediaobject></equation> is the estimate of the sample mean and <inlineequation><alt>$n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_3.png"/></imageobject><textobject role="tex"><phrase>$n$</phrase></textobject></inlinemediaobject></inlineequation> is the number of samples.</para><para>Note that the sample variance is not defined for <inlineequation><alt>$n &lt;= 1$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_8.png"/></imageobject><textobject role="tex"><phrase>$n &lt;= 1$</phrase></textobject></inlinemediaobject></inlineequation>.</para><para>A simplification can be obtained by the approximate recursion <equation><title/><alt>\[ \sigma_n^2 \approx \frac{n-1}{n} \sigma_{n-1}^2 + \frac{1}{n}(x_n - \mu_n)^2. \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_57.png"/></imageobject><textobject role="tex"><phrase>\[ \sigma_n^2 \approx \frac{n-1}{n} \sigma_{n-1}^2 + \frac{1}{n}(x_n - \mu_n)^2. \]</phrase></textobject></mediaobject></equation> because the difference <equation><title/><alt>\[ \left(\frac{1}{n-1} - \frac{1}{n}\right)(x_n - \mu_n)^2 = \frac{1}{n(n-1)}(x_n - \mu_n)^2. \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_58.png"/></imageobject><textobject role="tex"><phrase>\[ \left(\frac{1}{n-1} - \frac{1}{n}\right)(x_n - \mu_n)^2 = \frac{1}{n(n-1)}(x_n - \mu_n)^2. \]</phrase></textobject></mediaobject></equation> converges to zero as <inlineequation><alt>$n \rightarrow \infty$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_59.png"/></imageobject><textobject role="tex"><phrase>$n \rightarrow \infty$</phrase></textobject></inlinemediaobject></inlineequation>. However, for small <inlineequation><alt>$ n $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_33.png"/></imageobject><textobject role="tex"><phrase>$ n $</phrase></textobject></inlinemediaobject></inlineequation> the difference can be non-negligible. </para></description><method-group name="public member functions">
  1750. <method name="operator()"><type>void</type><template>
  1751. <template-type-parameter name="Args"/>
  1752. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1753. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1754. <method name="serialize"><type>void</type><template>
  1755. <template-type-parameter name="Archive"/>
  1756. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1757. </method-group>
  1758. <constructor><template>
  1759. <template-type-parameter name="Args"/>
  1760. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1761. </struct><struct name="weighted_covariance_impl"><template>
  1762. <template-type-parameter name="Sample"/>
  1763. <template-type-parameter name="Weight"/>
  1764. <template-type-parameter name="VariateType"/>
  1765. <template-type-parameter name="VariateTag"/>
  1766. </template><inherit access="public">accumulator_base</inherit><purpose>Weighted Covariance Estimator. </purpose><description><para>An iterative Monte Carlo estimator for the weighted covariance <inlineequation><alt>$\mathrm{Cov}(X,X')$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_47.png"/></imageobject><textobject role="tex"><phrase>$\mathrm{Cov}(X,X')$</phrase></textobject></inlinemediaobject></inlineequation>, where <inlineequation><alt>$X$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_48.png"/></imageobject><textobject role="tex"><phrase>$X$</phrase></textobject></inlinemediaobject></inlineequation> is a sample and <inlineequation><alt>$X'$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_49.png"/></imageobject><textobject role="tex"><phrase>$X'$</phrase></textobject></inlinemediaobject></inlineequation> a variate, is given by:</para><para><equation><title/><alt>\[ \hat{c}_n = \frac{\bar{w}_n-w_n}{\bar{w}_n} \hat{c}_{n-1} + \frac{w_n}{\bar{w}_n-w_n}(X_n - \hat{\mu}_n)(X_n' - \hat{\mu}_n'), \quad n\ge2,\quad\hat{c}_1 = 0, \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_50.png"/></imageobject><textobject role="tex"><phrase>\[ \hat{c}_n = \frac{\bar{w}_n-w_n}{\bar{w}_n} \hat{c}_{n-1} + \frac{w_n}{\bar{w}_n-w_n}(X_n - \hat{\mu}_n)(X_n' - \hat{\mu}_n'), \quad n\ge2,\quad\hat{c}_1 = 0, \]</phrase></textobject></mediaobject></equation></para><para><inlineequation><alt>$\hat{\mu}_n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_7.png"/></imageobject><textobject role="tex"><phrase>$\hat{\mu}_n$</phrase></textobject></inlinemediaobject></inlineequation> and <inlineequation><alt>$\hat{\mu}_n'$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_51.png"/></imageobject><textobject role="tex"><phrase>$\hat{\mu}_n'$</phrase></textobject></inlinemediaobject></inlineequation> being the weighted means of the samples and variates and <inlineequation><alt>$\bar{w}_n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_5.png"/></imageobject><textobject role="tex"><phrase>$\bar{w}_n$</phrase></textobject></inlinemediaobject></inlineequation> the sum of the <inlineequation><alt>$n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_3.png"/></imageobject><textobject role="tex"><phrase>$n$</phrase></textobject></inlinemediaobject></inlineequation> first weights <inlineequation><alt>$w_i$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_6.png"/></imageobject><textobject role="tex"><phrase>$w_i$</phrase></textobject></inlinemediaobject></inlineequation>. </para></description><method-group name="public member functions">
  1767. <method name="operator()"><type>void</type><template>
  1768. <template-type-parameter name="Args"/>
  1769. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1770. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1771. <method name="serialize"><type>void</type><template>
  1772. <template-type-parameter name="Archive"/>
  1773. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1774. </method-group>
  1775. <constructor><template>
  1776. <template-type-parameter name="Args"/>
  1777. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1778. </struct><struct name="weighted_density_impl"><template>
  1779. <template-type-parameter name="Sample"/>
  1780. <template-type-parameter name="Weight"/>
  1781. </template><inherit access="public">accumulator_base</inherit><purpose>Histogram density estimator for weighted samples. </purpose><description><para>The histogram density estimator returns a histogram of the sample distribution. The positions and sizes of the bins are determined using a specifiable number of cached samples (cache_size). The range between the minimum and the maximum of the cached samples is subdivided into a specifiable number of bins (num_bins) of same size. Additionally, an under- and an overflow bin is added to capture future under- and overflow samples. Once the bins are determined, the cached samples and all subsequent samples are added to the correct bins. At the end, a range of std::pair is returned, where each pair contains the position of the bin (lower bound) and the sum of the weights (normalized with the sum of all weights).</para><para>
  1782. </para></description><method-group name="public member functions">
  1783. <method name="operator()"><type>void</type><template>
  1784. <template-type-parameter name="Args"/>
  1785. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1786. <method name="result" cv="const"><type>result_type</type><template>
  1787. <template-type-parameter name="Args"/>
  1788. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1789. <method name="serialize"><type>void</type><template>
  1790. <template-type-parameter name="Archive"/>
  1791. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1792. </method-group>
  1793. <constructor><template>
  1794. <template-type-parameter name="Args"/>
  1795. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1796. </struct><struct name="weighted_extended_p_square_impl"><template>
  1797. <template-type-parameter name="Sample"/>
  1798. <template-type-parameter name="Weight"/>
  1799. </template><inherit access="public">accumulator_base</inherit><purpose>Multiple quantile estimation with the extended <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm for weighted samples. </purpose><description><para>This version of the extended <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm extends the extended <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm to support weighted samples. The extended <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm dynamically estimates several quantiles without storing samples. Assume that <inlineequation><alt>$m$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_43.png"/></imageobject><textobject role="tex"><phrase>$m$</phrase></textobject></inlinemediaobject></inlineequation> quantiles <inlineequation><alt>$\xi_{p_1}, \ldots, \xi_{p_m}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_44.png"/></imageobject><textobject role="tex"><phrase>$\xi_{p_1}, \ldots, \xi_{p_m}$</phrase></textobject></inlinemediaobject></inlineequation> are to be estimated. Instead of storing the whole sample cumulative distribution, the algorithm maintains only <inlineequation><alt>$m+2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_45.png"/></imageobject><textobject role="tex"><phrase>$m+2$</phrase></textobject></inlinemediaobject></inlineequation> principal markers and <inlineequation><alt>$m+1$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_46.png"/></imageobject><textobject role="tex"><phrase>$m+1$</phrase></textobject></inlinemediaobject></inlineequation> middle markers, whose positions are updated with each sample and whose heights are adjusted (if necessary) using a piecewise-parablic formula. The heights of the principal markers are the current estimates of the quantiles and are returned as an iterator range.</para><para>For further details, see</para><para>K. E. E. Raatikainen, Simultaneous estimation of several quantiles, Simulation, Volume 49, Number 4 (October), 1986, p. 159-164.</para><para>The extended <inlineequation><alt>$ P^2 $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_38.png"/></imageobject><textobject role="tex"><phrase>$ P^2 $</phrase></textobject></inlinemediaobject></inlineequation> algorithm generalizes the <inlineequation><alt>$ P^2 $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_38.png"/></imageobject><textobject role="tex"><phrase>$ P^2 $</phrase></textobject></inlinemediaobject></inlineequation> algorithm of</para><para>R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and histograms without storing observations, Communications of the ACM, Volume 28 (October), Number 10, 1985, p. 1076-1085.</para><para>
  1800. </para></description><method-group name="public member functions">
  1801. <method name="operator()"><type>void</type><template>
  1802. <template-type-parameter name="Args"/>
  1803. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1804. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1805. <method name="serialize"><type>void</type><template>
  1806. <template-type-parameter name="Archive"/>
  1807. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1808. </method-group>
  1809. <constructor><template>
  1810. <template-type-parameter name="Args"/>
  1811. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1812. </struct><struct name="weighted_kurtosis_impl"><template>
  1813. <template-type-parameter name="Sample"/>
  1814. <template-type-parameter name="Weight"/>
  1815. </template><inherit access="public">accumulator_base</inherit><purpose>Kurtosis estimation for weighted samples. </purpose><description><para>The kurtosis of a sample distribution is defined as the ratio of the 4th central moment and the square of the 2nd central moment (the variance) of the samples, minus 3. The term <inlineequation><alt>$ -3 $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_41.png"/></imageobject><textobject role="tex"><phrase>$ -3 $</phrase></textobject></inlinemediaobject></inlineequation> is added in order to ensure that the normal distribution has zero kurtosis. The kurtosis can also be expressed by the simple moments:</para><para><equation><title/><alt>\[ \hat{g}_2 = \frac {\widehat{m}_n^{(4)}-4\widehat{m}_n^{(3)}\hat{\mu}_n+6\widehat{m}_n^{(2)}\hat{\mu}_n^2-3\hat{\mu}_n^4} {\left(\widehat{m}_n^{(2)} - \hat{\mu}_n^{2}\right)^2} - 3, \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_42.png"/></imageobject><textobject role="tex"><phrase>\[ \hat{g}_2 = \frac {\widehat{m}_n^{(4)}-4\widehat{m}_n^{(3)}\hat{\mu}_n+6\widehat{m}_n^{(2)}\hat{\mu}_n^2-3\hat{\mu}_n^4} {\left(\widehat{m}_n^{(2)} - \hat{\mu}_n^{2}\right)^2} - 3, \]</phrase></textobject></mediaobject></equation></para><para>where <inlineequation><alt>$ \widehat{m}_n^{(i)} $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_30.png"/></imageobject><textobject role="tex"><phrase>$ \widehat{m}_n^{(i)} $</phrase></textobject></inlinemediaobject></inlineequation> are the <inlineequation><alt>$ i $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_31.png"/></imageobject><textobject role="tex"><phrase>$ i $</phrase></textobject></inlinemediaobject></inlineequation>-th moment and <inlineequation><alt>$ \hat{\mu}_n $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_32.png"/></imageobject><textobject role="tex"><phrase>$ \hat{\mu}_n $</phrase></textobject></inlinemediaobject></inlineequation> the mean (first moment) of the <inlineequation><alt>$ n $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_33.png"/></imageobject><textobject role="tex"><phrase>$ n $</phrase></textobject></inlinemediaobject></inlineequation> samples.</para><para>The kurtosis estimator for weighted samples is formally identical to the estimator for unweighted samples, except that the weighted counterparts of all measures it depends on are to be taken. </para></description><method-group name="public member functions">
  1816. <method name="result" cv="const"><type>result_type</type><template>
  1817. <template-type-parameter name="Args"/>
  1818. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1819. </method-group>
  1820. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1821. </struct><struct name="weighted_mean_impl"><template>
  1822. <template-type-parameter name="Sample"/>
  1823. <template-type-parameter name="Weight"/>
  1824. <template-type-parameter name="Tag"/>
  1825. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1826. <method name="result" cv="const"><type>result_type</type><template>
  1827. <template-type-parameter name="Args"/>
  1828. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1829. </method-group>
  1830. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1831. </struct><struct name="weighted_median_impl"><template>
  1832. <template-type-parameter name="Sample"/>
  1833. </template><inherit access="public">accumulator_base</inherit><purpose>Median estimation for weighted samples based on the <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> quantile estimator. </purpose><description><para>The <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm for weighted samples is invoked with a quantile probability of 0.5. </para></description><method-group name="public member functions">
  1834. <method name="result" cv="const"><type>result_type</type><template>
  1835. <template-type-parameter name="Args"/>
  1836. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1837. </method-group>
  1838. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1839. </struct><struct name="weighted_moment_impl"><template>
  1840. <template-type-parameter name="N"/>
  1841. <template-type-parameter name="Sample"/>
  1842. <template-type-parameter name="Weight"/>
  1843. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1844. <method name="BOOST_MPL_ASSERT_RELATION"><type/><parameter name=""><paramtype>N::value</paramtype></parameter><parameter name=""><paramtype>0</paramtype></parameter></method>
  1845. <method name="operator()"><type>void</type><template>
  1846. <template-type-parameter name="Args"/>
  1847. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1848. <method name="result" cv="const"><type>result_type</type><template>
  1849. <template-type-parameter name="Args"/>
  1850. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1851. <method name="serialize"><type>void</type><template>
  1852. <template-type-parameter name="Archive"/>
  1853. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1854. </method-group>
  1855. <constructor><template>
  1856. <template-type-parameter name="Args"/>
  1857. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1858. </struct><struct name="weighted_p_square_cumulative_distribution_impl"><template>
  1859. <template-type-parameter name="Sample"/>
  1860. <template-type-parameter name="Weight"/>
  1861. </template><inherit access="public">accumulator_base</inherit><purpose>Histogram calculation of the cumulative distribution with the <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm for weighted samples. </purpose><description><para>A histogram of the sample cumulative distribution is computed dynamically without storing samples based on the <inlineequation><alt>$ P^2 $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_38.png"/></imageobject><textobject role="tex"><phrase>$ P^2 $</phrase></textobject></inlinemediaobject></inlineequation> algorithm for weighted samples. The returned histogram has a specifiable amount (num_cells) equiprobable (and not equal-sized) cells.</para><para>Note that applying importance sampling results in regions to be more and other regions to be less accurately estimated than without importance sampling, i.e., with unweighted samples.</para><para>For further details, see</para><para>R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and histograms without storing observations, Communications of the ACM, Volume 28 (October), Number 10, 1985, p. 1076-1085.</para><para>
  1862. </para></description><method-group name="public member functions">
  1863. <method name="operator()"><type>void</type><template>
  1864. <template-type-parameter name="Args"/>
  1865. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1866. <method name="result" cv="const"><type>result_type</type><template>
  1867. <template-type-parameter name="Args"/>
  1868. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1869. <method name="serialize"><type>void</type><template>
  1870. <template-type-parameter name="Archive"/>
  1871. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1872. </method-group>
  1873. <constructor><template>
  1874. <template-type-parameter name="Args"/>
  1875. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1876. </struct><struct name="weighted_p_square_quantile_impl"><template>
  1877. <template-type-parameter name="Sample"/>
  1878. <template-type-parameter name="Weight"/>
  1879. <template-type-parameter name="Impl"/>
  1880. </template><inherit access="public">accumulator_base</inherit><purpose>Single quantile estimation with the <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm for weighted samples. </purpose><description><para>This version of the <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm extends the <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm to support weighted samples. The <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> algorithm estimates a quantile dynamically without storing samples. Instead of storing the whole sample cumulative distribution, only five points (markers) are stored. The heights of these markers are the minimum and the maximum of the samples and the current estimates of the <inlineequation><alt>$(p/2)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_35.png"/></imageobject><textobject role="tex"><phrase>$(p/2)$</phrase></textobject></inlinemediaobject></inlineequation>-, <inlineequation><alt>$p$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_36.png"/></imageobject><textobject role="tex"><phrase>$p$</phrase></textobject></inlinemediaobject></inlineequation> - and <inlineequation><alt>$(1+p)/2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_37.png"/></imageobject><textobject role="tex"><phrase>$(1+p)/2$</phrase></textobject></inlinemediaobject></inlineequation> -quantiles. Their positions are equal to the number of samples that are smaller or equal to the markers. Each time a new sample is added, the positions of the markers are updated and if necessary their heights are adjusted using a piecewise- parabolic formula.</para><para>For further details, see</para><para>R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and histograms without storing observations, Communications of the ACM, Volume 28 (October), Number 10, 1985, p. 1076-1085.</para><para>
  1881. </para></description><method-group name="public member functions">
  1882. <method name="operator()"><type>void</type><template>
  1883. <template-type-parameter name="Args"/>
  1884. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1885. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1886. <method name="serialize"><type>void</type><template>
  1887. <template-type-parameter name="Archive"/>
  1888. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1889. </method-group>
  1890. <constructor><template>
  1891. <template-type-parameter name="Args"/>
  1892. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1893. </struct><struct name="weighted_peaks_over_threshold_impl"><template>
  1894. <template-type-parameter name="Sample"/>
  1895. <template-type-parameter name="Weight"/>
  1896. <template-type-parameter name="LeftRight"/>
  1897. </template><inherit access="public">accumulator_base</inherit><purpose>Weighted Peaks over Threshold Method for Weighted Quantile and Weighted Tail Mean Estimation. </purpose><description><para><para><emphasis role="bold">See Also:</emphasis><para><classname alt="boost::accumulators::impl::peaks_over_threshold_impl">peaks_over_threshold_impl</classname></para>
  1898. </para>
  1899. </para></description><method-group name="public member functions">
  1900. <method name="operator()"><type>void</type><template>
  1901. <template-type-parameter name="Args"/>
  1902. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1903. <method name="result" cv="const"><type>result_type</type><template>
  1904. <template-type-parameter name="Args"/>
  1905. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1906. <method name="serialize"><type>void</type><template>
  1907. <template-type-parameter name="Archive"/>
  1908. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1909. </method-group>
  1910. <constructor><template>
  1911. <template-type-parameter name="Args"/>
  1912. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1913. </struct><struct name="weighted_peaks_over_threshold_prob_impl"><template>
  1914. <template-type-parameter name="Sample"/>
  1915. <template-type-parameter name="Weight"/>
  1916. <template-type-parameter name="LeftRight"/>
  1917. </template><inherit access="public">accumulator_base</inherit><purpose>Peaks over Threshold Method for Quantile and Tail Mean Estimation. </purpose><description><para><para><emphasis role="bold">See Also:</emphasis><para><classname alt="boost::accumulators::impl::weighted_peaks_over_threshold_impl">weighted_peaks_over_threshold_impl</classname></para>
  1918. </para>
  1919. </para></description><method-group name="public member functions">
  1920. <method name="operator()"><type>void</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1921. <method name="result" cv="const"><type>result_type</type><template>
  1922. <template-type-parameter name="Args"/>
  1923. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1924. </method-group>
  1925. <constructor><template>
  1926. <template-type-parameter name="Args"/>
  1927. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1928. </struct><struct name="weighted_skewness_impl"><template>
  1929. <template-type-parameter name="Sample"/>
  1930. <template-type-parameter name="Weight"/>
  1931. </template><inherit access="public">accumulator_base</inherit><purpose>Skewness estimation for weighted samples. </purpose><description><para>The skewness of a sample distribution is defined as the ratio of the 3rd central moment and the <inlineequation><alt>$ 3/2 $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_28.png"/></imageobject><textobject role="tex"><phrase>$ 3/2 $</phrase></textobject></inlinemediaobject></inlineequation>-th power $ of the 2nd central moment (the variance) of the samples. The skewness can also be expressed by the simple moments:</para><para><equation><title/><alt>\[ \hat{g}_1 = \frac {\widehat{m}_n^{(3)}-3\widehat{m}_n^{(2)}\hat{\mu}_n+2\hat{\mu}_n^3} {\left(\widehat{m}_n^{(2)} - \hat{\mu}_n^{2}\right)^{3/2}} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_29.png"/></imageobject><textobject role="tex"><phrase>\[ \hat{g}_1 = \frac {\widehat{m}_n^{(3)}-3\widehat{m}_n^{(2)}\hat{\mu}_n+2\hat{\mu}_n^3} {\left(\widehat{m}_n^{(2)} - \hat{\mu}_n^{2}\right)^{3/2}} \]</phrase></textobject></mediaobject></equation></para><para>where <inlineequation><alt>$ \widehat{m}_n^{(i)} $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_30.png"/></imageobject><textobject role="tex"><phrase>$ \widehat{m}_n^{(i)} $</phrase></textobject></inlinemediaobject></inlineequation> are the <inlineequation><alt>$ i $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_31.png"/></imageobject><textobject role="tex"><phrase>$ i $</phrase></textobject></inlinemediaobject></inlineequation>-th moment and <inlineequation><alt>$ \hat{\mu}_n $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_32.png"/></imageobject><textobject role="tex"><phrase>$ \hat{\mu}_n $</phrase></textobject></inlinemediaobject></inlineequation> the mean (first moment) of the <inlineequation><alt>$ n $</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_33.png"/></imageobject><textobject role="tex"><phrase>$ n $</phrase></textobject></inlinemediaobject></inlineequation> samples.</para><para>The skewness estimator for weighted samples is formally identical to the estimator for unweighted samples, except that the weighted counterparts of all measures it depends on are to be taken. </para></description><method-group name="public member functions">
  1932. <method name="result" cv="const"><type>result_type</type><template>
  1933. <template-type-parameter name="Args"/>
  1934. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1935. </method-group>
  1936. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1937. </struct><struct name="weighted_sum_impl"><template>
  1938. <template-type-parameter name="Sample"/>
  1939. <template-type-parameter name="Weight"/>
  1940. <template-type-parameter name="Tag"/>
  1941. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1942. <method name="operator()"><type>void</type><template>
  1943. <template-type-parameter name="Args"/>
  1944. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1945. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1946. <method name="serialize"><type>void</type><template>
  1947. <template-type-parameter name="Archive"/>
  1948. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1949. </method-group>
  1950. <constructor><template>
  1951. <template-type-parameter name="Args"/>
  1952. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1953. </struct><struct name="weighted_sum_kahan_impl"><template>
  1954. <template-type-parameter name="Sample"/>
  1955. <template-type-parameter name="Weight"/>
  1956. <template-type-parameter name="Tag"/>
  1957. </template><inherit access="public">accumulator_base</inherit><method-group name="public member functions">
  1958. <method name="operator()"><type>void</type><template>
  1959. <template-type-parameter name="Args"/>
  1960. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1961. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  1962. <method name="serialize"><type>void</type><template>
  1963. <template-type-parameter name="Archive"/>
  1964. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1965. </method-group>
  1966. <constructor><template>
  1967. <template-type-parameter name="Args"/>
  1968. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  1969. </struct><struct name="weighted_tail_quantile_impl"><template>
  1970. <template-type-parameter name="Sample"/>
  1971. <template-type-parameter name="Weight"/>
  1972. <template-type-parameter name="LeftRight"/>
  1973. </template><inherit access="public">accumulator_base</inherit><purpose>Tail quantile estimation based on order statistics of weighted samples (for both left and right tails) </purpose><description><para>An estimator <inlineequation><alt>$\hat{q}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_19.png"/></imageobject><textobject role="tex"><phrase>$\hat{q}$</phrase></textobject></inlinemediaobject></inlineequation> of tail quantiles with level <inlineequation><alt>$\alpha$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_20.png"/></imageobject><textobject role="tex"><phrase>$\alpha$</phrase></textobject></inlinemediaobject></inlineequation> based on order statistics <inlineequation><alt>$X_{1:n} \leq X_{2:n} \leq\dots\leq X_{n:n}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_21.png"/></imageobject><textobject role="tex"><phrase>$X_{1:n} \leq X_{2:n} \leq\dots\leq X_{n:n}$</phrase></textobject></inlinemediaobject></inlineequation> of weighted samples are given by <inlineequation><alt>$X_{\lambda:n}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_22.png"/></imageobject><textobject role="tex"><phrase>$X_{\lambda:n}$</phrase></textobject></inlinemediaobject></inlineequation> (left tail) and <inlineequation><alt>$X_{\rho:n}$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_23.png"/></imageobject><textobject role="tex"><phrase>$X_{\rho:n}$</phrase></textobject></inlinemediaobject></inlineequation> (right tail), where</para><para><equation><title/><alt>\[ \lambda = \inf\left\{ l \left| \frac{1}{\bar{w}_n}\sum_{i=1}^{l} w_i \geq \alpha \right. \right\} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_10.png"/></imageobject><textobject role="tex"><phrase>\[ \lambda = \inf\left\{ l \left| \frac{1}{\bar{w}_n}\sum_{i=1}^{l} w_i \geq \alpha \right. \right\} \]</phrase></textobject></mediaobject></equation></para><para>and</para><para><equation><title/><alt>\[ \rho = \sup\left\{ r \left| \frac{1}{\bar{w}_n}\sum_{i=r}^{n} w_i \geq (1 - \alpha) \right. \right\}, \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_24.png"/></imageobject><textobject role="tex"><phrase>\[ \rho = \sup\left\{ r \left| \frac{1}{\bar{w}_n}\sum_{i=r}^{n} w_i \geq (1 - \alpha) \right. \right\}, \]</phrase></textobject></mediaobject></equation></para><para><inlineequation><alt>$n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_3.png"/></imageobject><textobject role="tex"><phrase>$n$</phrase></textobject></inlinemediaobject></inlineequation> being the number of samples and <inlineequation><alt>$\bar{w}_n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_5.png"/></imageobject><textobject role="tex"><phrase>$\bar{w}_n$</phrase></textobject></inlinemediaobject></inlineequation> the sum of all weights.</para><para>
  1974. </para></description><method-group name="public member functions">
  1975. <method name="result" cv="const"><type>result_type</type><template>
  1976. <template-type-parameter name="Args"/>
  1977. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1978. </method-group>
  1979. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1980. </struct><struct name="weighted_tail_variate_means_impl"><template>
  1981. <template-type-parameter name="Sample"/>
  1982. <template-type-parameter name="Weight"/>
  1983. <template-type-parameter name="Impl"/>
  1984. <template-type-parameter name="LeftRight"/>
  1985. <template-type-parameter name="VariateType"/>
  1986. </template><inherit access="public">accumulator_base</inherit><purpose>Estimation of the absolute and relative weighted tail variate means (for both left and right tails) </purpose><description><para>For all <inlineequation><alt>$j$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_9.png"/></imageobject><textobject role="tex"><phrase>$j$</phrase></textobject></inlinemediaobject></inlineequation>-th variates associated to the</para><para><equation><title/><alt>\[ \lambda = \inf\left\{ l \left| \frac{1}{\bar{w}_n}\sum_{i=1}^{l} w_i \geq \alpha \right. \right\} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_10.png"/></imageobject><textobject role="tex"><phrase>\[ \lambda = \inf\left\{ l \left| \frac{1}{\bar{w}_n}\sum_{i=1}^{l} w_i \geq \alpha \right. \right\} \]</phrase></textobject></mediaobject></equation></para><para>smallest samples (left tail) or the weighted mean of the</para><para><equation><title/><alt>\[ n + 1 - \rho = n + 1 - \sup\left\{ r \left| \frac{1}{\bar{w}_n}\sum_{i=r}^{n} w_i \geq (1 - \alpha) \right. \right\} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_11.png"/></imageobject><textobject role="tex"><phrase>\[ n + 1 - \rho = n + 1 - \sup\left\{ r \left| \frac{1}{\bar{w}_n}\sum_{i=r}^{n} w_i \geq (1 - \alpha) \right. \right\} \]</phrase></textobject></mediaobject></equation></para><para>largest samples (right tail), the absolute weighted tail means <inlineequation><alt>$\widehat{ATM}_{n,\alpha}(X, j)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_12.png"/></imageobject><textobject role="tex"><phrase>$\widehat{ATM}_{n,\alpha}(X, j)$</phrase></textobject></inlinemediaobject></inlineequation> are computed and returned as an iterator range. Alternatively, the relative weighted tail means <inlineequation><alt>$\widehat{RTM}_{n,\alpha}(X, j)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_13.png"/></imageobject><textobject role="tex"><phrase>$\widehat{RTM}_{n,\alpha}(X, j)$</phrase></textobject></inlinemediaobject></inlineequation> are returned, which are the absolute weighted tail means normalized with the weighted (non-coherent) sample tail mean <inlineequation><alt>$\widehat{NCTM}_{n,\alpha}(X)$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_14.png"/></imageobject><textobject role="tex"><phrase>$\widehat{NCTM}_{n,\alpha}(X)$</phrase></textobject></inlinemediaobject></inlineequation>.</para><para><equation><title/><alt>\[ \widehat{ATM}_{n,\alpha}^{\mathrm{right}}(X, j) = \frac{1}{\sum_{i=\rho}^n w_i} \sum_{i=\rho}^n w_i \xi_{j,i} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_15.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{ATM}_{n,\alpha}^{\mathrm{right}}(X, j) = \frac{1}{\sum_{i=\rho}^n w_i} \sum_{i=\rho}^n w_i \xi_{j,i} \]</phrase></textobject></mediaobject></equation></para><para><equation><title/><alt>\[ \widehat{ATM}_{n,\alpha}^{\mathrm{left}}(X, j) = \frac{1}{\sum_{i=1}^{\lambda}} \sum_{i=1}^{\lambda} w_i \xi_{j,i} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_16.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{ATM}_{n,\alpha}^{\mathrm{left}}(X, j) = \frac{1}{\sum_{i=1}^{\lambda}} \sum_{i=1}^{\lambda} w_i \xi_{j,i} \]</phrase></textobject></mediaobject></equation></para><para><equation><title/><alt>\[ \widehat{RTM}_{n,\alpha}^{\mathrm{right}}(X, j) = \frac{\sum_{i=\rho}^n w_i \xi_{j,i}} {\sum_{i=\rho}^n w_i \widehat{NCTM}_{n,\alpha}^{\mathrm{right}}(X)} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_17.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{RTM}_{n,\alpha}^{\mathrm{right}}(X, j) = \frac{\sum_{i=\rho}^n w_i \xi_{j,i}} {\sum_{i=\rho}^n w_i \widehat{NCTM}_{n,\alpha}^{\mathrm{right}}(X)} \]</phrase></textobject></mediaobject></equation></para><para><equation><title/><alt>\[ \widehat{RTM}_{n,\alpha}^{\mathrm{left}}(X, j) = \frac{\sum_{i=1}^{\lambda} w_i \xi_{j,i}} {\sum_{i=1}^{\lambda} w_i \widehat{NCTM}_{n,\alpha}^{\mathrm{left}}(X)} \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_18.png"/></imageobject><textobject role="tex"><phrase>\[ \widehat{RTM}_{n,\alpha}^{\mathrm{left}}(X, j) = \frac{\sum_{i=1}^{\lambda} w_i \xi_{j,i}} {\sum_{i=1}^{\lambda} w_i \widehat{NCTM}_{n,\alpha}^{\mathrm{left}}(X)} \]</phrase></textobject></mediaobject></equation> </para></description><method-group name="public member functions">
  1987. <method name="result" cv="const"><type>result_type</type><template>
  1988. <template-type-parameter name="Args"/>
  1989. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  1990. <method name="serialize"><type>void</type><template>
  1991. <template-type-parameter name="Archive"/>
  1992. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  1993. </method-group>
  1994. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  1995. </struct><struct name="weighted_variance_impl"><template>
  1996. <template-type-parameter name="Sample"/>
  1997. <template-type-parameter name="Weight"/>
  1998. <template-type-parameter name="MeanFeature"/>
  1999. <template-type-parameter name="Tag"/>
  2000. </template><inherit access="public">accumulator_base</inherit><purpose>Iterative calculation of variance of weighted samples. </purpose><description><para>Iterative calculation of variance of weighted samples: <equation><title/><alt>\[ \hat{\sigma}_n^2 = \frac{\bar{w}_n - w_n}{\bar{w}_n}\hat{\sigma}_{n - 1}^2 + \frac{w_n}{\bar{w}_n - w_n}\left(X_n - \hat{\mu}_n\right)^2 ,\quad n\ge2,\quad\hat{\sigma}_0^2 = 0. \]</alt><mediaobject><imageobject role="html"><imagedata format="PNG" align="center" fileref="images/accumulators//form_4.png"/></imageobject><textobject role="tex"><phrase>\[ \hat{\sigma}_n^2 = \frac{\bar{w}_n - w_n}{\bar{w}_n}\hat{\sigma}_{n - 1}^2 + \frac{w_n}{\bar{w}_n - w_n}\left(X_n - \hat{\mu}_n\right)^2 ,\quad n\ge2,\quad\hat{\sigma}_0^2 = 0. \]</phrase></textobject></mediaobject></equation> where <inlineequation><alt>$\bar{w}_n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_5.png"/></imageobject><textobject role="tex"><phrase>$\bar{w}_n$</phrase></textobject></inlinemediaobject></inlineequation> is the sum of the <inlineequation><alt>$n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_3.png"/></imageobject><textobject role="tex"><phrase>$n$</phrase></textobject></inlinemediaobject></inlineequation> weights <inlineequation><alt>$w_i$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_6.png"/></imageobject><textobject role="tex"><phrase>$w_i$</phrase></textobject></inlinemediaobject></inlineequation> and <inlineequation><alt>$\hat{\mu}_n$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_7.png"/></imageobject><textobject role="tex"><phrase>$\hat{\mu}_n$</phrase></textobject></inlinemediaobject></inlineequation> the estimate of the mean of the weighted samples. Note that the sample variance is not defined for <inlineequation><alt>$n &lt;= 1$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_8.png"/></imageobject><textobject role="tex"><phrase>$n &lt;= 1$</phrase></textobject></inlinemediaobject></inlineequation>. </para></description><method-group name="public member functions">
  2001. <method name="operator()"><type>void</type><template>
  2002. <template-type-parameter name="Args"/>
  2003. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  2004. <method name="result" cv="const"><type>result_type</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  2005. <method name="serialize"><type>void</type><template>
  2006. <template-type-parameter name="Archive"/>
  2007. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  2008. </method-group>
  2009. <constructor><template>
  2010. <template-type-parameter name="Args"/>
  2011. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  2012. </struct><struct name="with_density_median_impl"><template>
  2013. <template-type-parameter name="Sample"/>
  2014. </template><inherit access="public">accumulator_base</inherit><purpose>Median estimation based on the density estimator. </purpose><description><para>The algorithm determines the bin in which the <inlineequation><alt>$0.5*cnt$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_39.png"/></imageobject><textobject role="tex"><phrase>$0.5*cnt$</phrase></textobject></inlinemediaobject></inlineequation>-th sample lies, <inlineequation><alt>$cnt$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_40.png"/></imageobject><textobject role="tex"><phrase>$cnt$</phrase></textobject></inlinemediaobject></inlineequation> being the total number of samples. It returns the approximate horizontal position of this sample, based on a linear interpolation inside the bin. </para></description><method-group name="public member functions">
  2015. <method name="operator()"><type>void</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  2016. <method name="result" cv="const"><type>result_type</type><template>
  2017. <template-type-parameter name="Args"/>
  2018. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  2019. <method name="serialize"><type>void</type><template>
  2020. <template-type-parameter name="Archive"/>
  2021. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  2022. </method-group>
  2023. <constructor><template>
  2024. <template-type-parameter name="Args"/>
  2025. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  2026. </struct><struct name="with_density_weighted_median_impl"><template>
  2027. <template-type-parameter name="Sample"/>
  2028. </template><inherit access="public">accumulator_base</inherit><purpose>Median estimation for weighted samples based on the density estimator. </purpose><description><para>The algorithm determines the bin in which the <inlineequation><alt>$0.5*cnt$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_39.png"/></imageobject><textobject role="tex"><phrase>$0.5*cnt$</phrase></textobject></inlinemediaobject></inlineequation>-th sample lies, <inlineequation><alt>$cnt$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_40.png"/></imageobject><textobject role="tex"><phrase>$cnt$</phrase></textobject></inlinemediaobject></inlineequation> being the total number of samples. It returns the approximate horizontal position of this sample, based on a linear interpolation inside the bin. </para></description><method-group name="public member functions">
  2029. <method name="operator()"><type>void</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  2030. <method name="result" cv="const"><type>result_type</type><template>
  2031. <template-type-parameter name="Args"/>
  2032. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  2033. <method name="serialize"><type>void</type><template>
  2034. <template-type-parameter name="Archive"/>
  2035. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  2036. </method-group>
  2037. <constructor><template>
  2038. <template-type-parameter name="Args"/>
  2039. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></constructor>
  2040. </struct><struct name="with_p_square_cumulative_distribution_median_impl"><template>
  2041. <template-type-parameter name="Sample"/>
  2042. </template><inherit access="public">accumulator_base</inherit><purpose>Median estimation based on the <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> cumulative distribution estimator. </purpose><description><para>The algorithm determines the first (leftmost) bin with a height exceeding 0.5. It returns the approximate horizontal position of where the cumulative distribution equals 0.5, based on a linear interpolation inside the bin. </para></description><method-group name="public member functions">
  2043. <method name="operator()"><type>void</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  2044. <method name="result" cv="const"><type>result_type</type><template>
  2045. <template-type-parameter name="Args"/>
  2046. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  2047. <method name="serialize"><type>void</type><template>
  2048. <template-type-parameter name="Archive"/>
  2049. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  2050. </method-group>
  2051. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  2052. </struct><struct name="with_p_square_cumulative_distribution_weighted_median_impl"><template>
  2053. <template-type-parameter name="Sample"/>
  2054. <template-type-parameter name="Weight"/>
  2055. </template><inherit access="public">accumulator_base</inherit><purpose>Median estimation for weighted samples based on the <inlineequation><alt>$P^2$</alt><inlinemediaobject><imageobject role="html"><imagedata format="PNG" fileref="images/accumulators//form_34.png"/></imageobject><textobject role="tex"><phrase>$P^2$</phrase></textobject></inlinemediaobject></inlineequation> cumulative distribution estimator. </purpose><description><para>The algorithm determines the first (leftmost) bin with a height exceeding 0.5. It returns the approximate horizontal position of where the cumulative distribution equals 0.5, based on a linear interpolation inside the bin. </para></description><method-group name="public member functions">
  2056. <method name="operator()"><type>void</type><parameter name=""><paramtype>dont_care</paramtype></parameter></method>
  2057. <method name="result" cv="const"><type>result_type</type><template>
  2058. <template-type-parameter name="Args"/>
  2059. </template><parameter name="args"><paramtype>Args const &amp;</paramtype></parameter></method>
  2060. <method name="serialize"><type>void</type><template>
  2061. <template-type-parameter name="Archive"/>
  2062. </template><parameter name="ar"><paramtype>Archive &amp;</paramtype></parameter><parameter name="file_version"><paramtype>const unsigned int</paramtype></parameter></method>
  2063. </method-group>
  2064. <constructor><parameter name=""><paramtype>dont_care</paramtype></parameter></constructor>
  2065. </struct>
  2066. </namespace>
  2067. <namespace name="tag">
  2068. <struct name="absolute_tail_variate_means"><template>
  2069. <template-type-parameter name="LeftRight"/>
  2070. <template-type-parameter name="VariateType"/>
  2071. <template-type-parameter name="VariateTag"/>
  2072. </template><inherit access="public">boost::accumulators::depends_on&lt; count, non_coherent_tail_mean&lt; LeftRight &gt;, tail_variate&lt; VariateType, VariateTag, LeftRight &gt; &gt;</inherit></struct><struct name="absolute_weighted_tail_variate_means"><template>
  2073. <template-type-parameter name="LeftRight"/>
  2074. <template-type-parameter name="VariateType"/>
  2075. <template-type-parameter name="VariateTag"/>
  2076. </template><inherit access="public">boost::accumulators::depends_on&lt; non_coherent_weighted_tail_mean&lt; LeftRight &gt;, tail_variate&lt; VariateType, VariateTag, LeftRight &gt;, tail_weights&lt; LeftRight &gt; &gt;</inherit></struct><struct name="coherent_tail_mean"><template>
  2077. <template-type-parameter name="LeftRight"/>
  2078. </template><inherit access="public">boost::accumulators::depends_on&lt; count, quantile, non_coherent_tail_mean&lt; LeftRight &gt; &gt;</inherit></struct><struct name="covariance"><template>
  2079. <template-type-parameter name="VariateType"/>
  2080. <template-type-parameter name="VariateTag"/>
  2081. </template><inherit access="public">boost::accumulators::depends_on&lt; count, mean, mean_of_variates&lt; VariateType, VariateTag &gt; &gt;</inherit></struct><struct name="error_of"><template>
  2082. <template-type-parameter name="Feature"/>
  2083. </template><inherit access="public">boost::accumulators::depends_on&lt; Feature &gt;</inherit></struct><struct name="immediate_mean_of_variates"><template>
  2084. <template-type-parameter name="VariateType"/>
  2085. <template-type-parameter name="VariateTag"/>
  2086. </template><inherit access="public">boost::accumulators::depends_on&lt; count &gt;</inherit></struct><struct name="immediate_weighted_mean_of_variates"><template>
  2087. <template-type-parameter name="VariateType"/>
  2088. <template-type-parameter name="VariateTag"/>
  2089. </template><inherit access="public">boost::accumulators::depends_on&lt; sum_of_weights &gt;</inherit></struct><struct name="left_tail_variate"><template>
  2090. <template-type-parameter name="VariateType"/>
  2091. <template-type-parameter name="VariateTag"/>
  2092. <template-type-parameter name="LeftRight"/>
  2093. </template></struct><struct name="mean_of_variates"><template>
  2094. <template-type-parameter name="VariateType"/>
  2095. <template-type-parameter name="VariateTag"/>
  2096. </template><inherit access="public">boost::accumulators::depends_on&lt; count, sum_of_variates&lt; VariateType, VariateTag &gt; &gt;</inherit></struct><struct name="moment"><template>
  2097. <template-nontype-parameter name="N"><type>int</type></template-nontype-parameter>
  2098. </template><inherit access="public">boost::accumulators::depends_on&lt; count &gt;</inherit></struct><struct name="non_coherent_tail_mean"><template>
  2099. <template-type-parameter name="LeftRight"/>
  2100. </template><inherit access="public">boost::accumulators::depends_on&lt; count, tail&lt; LeftRight &gt; &gt;</inherit></struct><struct name="non_coherent_weighted_tail_mean"><template>
  2101. <template-type-parameter name="LeftRight"/>
  2102. </template><inherit access="public">boost::accumulators::depends_on&lt; sum_of_weights, tail_weights&lt; LeftRight &gt; &gt;</inherit></struct><struct name="peaks_over_threshold"><template>
  2103. <template-type-parameter name="LeftRight"/>
  2104. </template><inherit access="public">boost::accumulators::depends_on&lt; count &gt;</inherit><inherit access="public">pot_threshold_value</inherit></struct><struct name="peaks_over_threshold_prob"><template>
  2105. <template-type-parameter name="LeftRight"/>
  2106. </template><inherit access="public">boost::accumulators::depends_on&lt; count, tail&lt; LeftRight &gt; &gt;</inherit><inherit access="public">pot_threshold_probability</inherit></struct><struct name="pot_quantile"><template>
  2107. <template-type-parameter name="LeftRight"/>
  2108. </template><inherit access="public">boost::accumulators::depends_on&lt; peaks_over_threshold&lt; LeftRight &gt; &gt;</inherit></struct><struct name="pot_quantile_prob"><template>
  2109. <template-type-parameter name="LeftRight"/>
  2110. </template><inherit access="public">boost::accumulators::depends_on&lt; peaks_over_threshold_prob&lt; LeftRight &gt; &gt;</inherit></struct><struct name="pot_tail_mean"><template>
  2111. <template-type-parameter name="LeftRight"/>
  2112. </template><inherit access="public">boost::accumulators::depends_on&lt; peaks_over_threshold&lt; LeftRight &gt;, pot_quantile&lt; LeftRight &gt; &gt;</inherit></struct><struct name="pot_tail_mean_prob"><template>
  2113. <template-type-parameter name="LeftRight"/>
  2114. </template><inherit access="public">boost::accumulators::depends_on&lt; peaks_over_threshold_prob&lt; LeftRight &gt;, pot_quantile_prob&lt; LeftRight &gt; &gt;</inherit></struct><struct name="quantile"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit><typedef name="impl"><type>mpl::print&lt; class ____MISSING_SPECIFIC_QUANTILE_FEATURE_IN_ACCUMULATOR_SET____ &gt;</type></typedef>
  2115. </struct><struct name="relative_tail_variate_means"><template>
  2116. <template-type-parameter name="LeftRight"/>
  2117. <template-type-parameter name="VariateType"/>
  2118. <template-type-parameter name="VariateTag"/>
  2119. </template><inherit access="public">boost::accumulators::depends_on&lt; count, non_coherent_tail_mean&lt; LeftRight &gt;, tail_variate&lt; VariateType, VariateTag, LeftRight &gt; &gt;</inherit></struct><struct name="relative_weighted_tail_variate_means"><template>
  2120. <template-type-parameter name="LeftRight"/>
  2121. <template-type-parameter name="VariateType"/>
  2122. <template-type-parameter name="VariateTag"/>
  2123. </template><inherit access="public">boost::accumulators::depends_on&lt; non_coherent_weighted_tail_mean&lt; LeftRight &gt;, tail_variate&lt; VariateType, VariateTag, LeftRight &gt;, tail_weights&lt; LeftRight &gt; &gt;</inherit></struct><struct name="right_tail_variate"><template>
  2124. <template-type-parameter name="VariateType"/>
  2125. <template-type-parameter name="VariateTag"/>
  2126. <template-type-parameter name="LeftRight"/>
  2127. </template></struct><struct name="sum_of_variates"><template>
  2128. <template-type-parameter name="VariateType"/>
  2129. <template-type-parameter name="VariateTag"/>
  2130. </template><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct><struct name="sum_of_variates_kahan"><template>
  2131. <template-type-parameter name="VariateType"/>
  2132. <template-type-parameter name="VariateTag"/>
  2133. </template><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct><struct name="tail"><template>
  2134. <template-type-parameter name="LeftRight"/>
  2135. </template><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit><inherit access="public">boost::accumulators::tail_cache_size_named_arg&lt; LeftRight &gt;</inherit></struct><struct name="tail_mean"><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit><typedef name="impl"><type>mpl::print&lt; class ____MISSING_SPECIFIC_TAIL_MEAN_FEATURE_IN_ACCUMULATOR_SET____ &gt;</type></typedef>
  2136. </struct><struct name="tail_quantile"><template>
  2137. <template-type-parameter name="LeftRight"/>
  2138. </template><inherit access="public">boost::accumulators::depends_on&lt; count, tail&lt; LeftRight &gt; &gt;</inherit></struct><struct name="tail_variate"><template>
  2139. <template-type-parameter name="VariateType"/>
  2140. <template-type-parameter name="VariateTag"/>
  2141. <template-type-parameter name="LeftRight"/>
  2142. </template><inherit access="public">boost::accumulators::depends_on&lt; tail&lt; LeftRight &gt; &gt;</inherit></struct><struct name="tail_variate_means"><template>
  2143. <template-type-parameter name="LeftRight"/>
  2144. <template-type-parameter name="VariateType"/>
  2145. <template-type-parameter name="VariateTag"/>
  2146. </template></struct><struct name="tail_weights"><template>
  2147. <template-type-parameter name="LeftRight"/>
  2148. </template><inherit access="public">boost::accumulators::depends_on&lt; tail&lt; LeftRight &gt; &gt;</inherit></struct><struct name="weighted_covariance"><template>
  2149. <template-type-parameter name="VariateType"/>
  2150. <template-type-parameter name="VariateTag"/>
  2151. </template><inherit access="public">boost::accumulators::depends_on&lt; count, sum_of_weights, weighted_mean, weighted_mean_of_variates&lt; VariateType, VariateTag &gt; &gt;</inherit></struct><struct name="weighted_mean_of_variates"><template>
  2152. <template-type-parameter name="VariateType"/>
  2153. <template-type-parameter name="VariateTag"/>
  2154. </template><inherit access="public">boost::accumulators::depends_on&lt; sum_of_weights, weighted_sum_of_variates&lt; VariateType, VariateTag &gt; &gt;</inherit></struct><struct name="weighted_moment"><template>
  2155. <template-nontype-parameter name="N"><type>int</type></template-nontype-parameter>
  2156. </template><inherit access="public">boost::accumulators::depends_on&lt; count, sum_of_weights &gt;</inherit></struct><struct name="weighted_peaks_over_threshold"><template>
  2157. <template-type-parameter name="LeftRight"/>
  2158. </template><inherit access="public">boost::accumulators::depends_on&lt; sum_of_weights &gt;</inherit><inherit access="public">pot_threshold_value</inherit></struct><struct name="weighted_peaks_over_threshold_prob"><template>
  2159. <template-type-parameter name="LeftRight"/>
  2160. </template><inherit access="public">boost::accumulators::depends_on&lt; sum_of_weights, tail_weights&lt; LeftRight &gt; &gt;</inherit><inherit access="public">pot_threshold_probability</inherit></struct><struct name="weighted_pot_quantile"><template>
  2161. <template-type-parameter name="LeftRight"/>
  2162. </template><inherit access="public">boost::accumulators::depends_on&lt; weighted_peaks_over_threshold&lt; LeftRight &gt; &gt;</inherit></struct><struct name="weighted_pot_quantile_prob"><template>
  2163. <template-type-parameter name="LeftRight"/>
  2164. </template><inherit access="public">boost::accumulators::depends_on&lt; weighted_peaks_over_threshold_prob&lt; LeftRight &gt; &gt;</inherit></struct><struct name="weighted_pot_tail_mean"><template>
  2165. <template-type-parameter name="LeftRight"/>
  2166. </template><inherit access="public">boost::accumulators::depends_on&lt; weighted_peaks_over_threshold&lt; LeftRight &gt;, weighted_pot_quantile&lt; LeftRight &gt; &gt;</inherit></struct><struct name="weighted_pot_tail_mean_prob"><template>
  2167. <template-type-parameter name="LeftRight"/>
  2168. </template><inherit access="public">boost::accumulators::depends_on&lt; weighted_peaks_over_threshold_prob&lt; LeftRight &gt;, weighted_pot_quantile_prob&lt; LeftRight &gt; &gt;</inherit></struct><struct name="weighted_sum_of_variates"><template>
  2169. <template-type-parameter name="VariateType"/>
  2170. <template-type-parameter name="VariateTag"/>
  2171. </template><inherit access="public">boost::accumulators::depends_on&lt;&gt;</inherit></struct><struct name="weighted_tail_quantile"><template>
  2172. <template-type-parameter name="LeftRight"/>
  2173. </template><inherit access="public">boost::accumulators::depends_on&lt; sum_of_weights, tail_weights&lt; LeftRight &gt; &gt;</inherit></struct><struct name="weighted_tail_variate_means"><template>
  2174. <template-type-parameter name="LeftRight"/>
  2175. <template-type-parameter name="VariateType"/>
  2176. <template-type-parameter name="VariateTag"/>
  2177. </template></struct></namespace>
  2178. </namespace>
  2179. </namespace>
  2180. </header>
  2181. </library-reference>