This commit is contained in:
manojsdoshi
2020-04-24 01:09:47 +00:00
parent 4ad595bf18
commit 430f6c0cf3
2864 changed files with 304301 additions and 292875 deletions

View File

@@ -117,7 +117,7 @@ $(function() {
<div class="line"><a name="l00055"></a><span class="lineno"> 55</span>&#160; </div>
<div class="line"><a name="l00064"></a><span class="lineno"> 64</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">class</span> RandomNumberDistribution, <span class="keyword">class</span> Generator&gt;</div>
<div class="line"><a name="l00065"></a><span class="lineno"> 65</span>&#160;<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;typename RandomNumberDistribution::result_type&gt;</a></div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="namespaceripple_1_1test_1_1csf.html#a8a244c12011ff67c0b1d21673cbdbd84"> 66</a></span>&#160;<a class="code" href="namespaceripple_1_1test_1_1csf.html#a8a244c12011ff67c0b1d21673cbdbd84">sample</a>( <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> size, RandomNumberDistribution dist, <a class="code" href="classripple_1_1Generator.html">Generator</a>&amp; g)</div>
<div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="namespaceripple_1_1test_1_1csf.html#a8a244c12011ff67c0b1d21673cbdbd84"> 66</a></span>&#160;<a class="code" href="namespaceripple_1_1test_1_1csf.html#a8a244c12011ff67c0b1d21673cbdbd84">sample</a>(<a class="codeRef" href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a> size, RandomNumberDistribution dist, <a class="code" href="classripple_1_1Generator.html">Generator</a>&amp; g)</div>
<div class="line"><a name="l00067"></a><span class="lineno"> 67</span>&#160;{</div>
<div class="line"><a name="l00068"></a><span class="lineno"> 68</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;typename RandomNumberDistribution::result_type&gt;</a> res(size);</div>
<div class="line"><a name="l00069"></a><span class="lineno"> 69</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/algorithm/generate.html">std::generate</a>(res.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/begin.html">begin</a>(), res.<a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector/end.html">end</a>(), [&amp;dist, &amp;g]() { return dist(g); });</div>
@@ -132,118 +132,120 @@ $(function() {
<div class="line"><a name="l00085"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Selector.html#a1e713eb6116525962c9280c9c4589979"> 85</a></span>&#160; <a class="code" href="classripple_1_1Generator.html">Generator</a> <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a1e713eb6116525962c9280c9c4589979">g_</a>;</div>
<div class="line"><a name="l00086"></a><span class="lineno"> 86</span>&#160; </div>
<div class="line"><a name="l00087"></a><span class="lineno"> 87</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Selector.html#a032c84bf6fee638c3cdc3854b18dbca5"> 94</a></span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a032c84bf6fee638c3cdc3854b18dbca5">Selector</a>(RAIter first, RAIter last, <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;double&gt;</a> <span class="keyword">const</span>&amp; w,</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; <a class="code" href="classripple_1_1Generator.html">Generator</a>&amp; g)</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; : <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a6b3f311f99cf92966202b58fbe613b52">first_</a>{first}, <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a952b63764ab787c690f802085238692b">last_</a>{last}, <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a401933096fa53a7d1bf4355229065040">dd_</a>{w.begin(), w.end()}, <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a1e713eb6116525962c9280c9c4589979">g_</a>{g}</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; {</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <span class="keyword">using</span> tag = <span class="keyword">typename</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/iterator/iterator_traits.html">std::iterator_traits&lt;RAIter&gt;::iterator_category</a>;</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; static_assert(</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same&lt;tag, std::random_access_iterator_tag&gt;::value</a>,</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="stringliteral">&quot;Selector only supports random access iterators.&quot;</span>);</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; <span class="comment">// TODO: Allow for forward iterators</span></div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; }</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="keyword">typename</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/iterator/iterator_traits.html">std::iterator_traits&lt;RAIter&gt;::value_type</a></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Selector.html#a0934384908c2e97e147aa5e8bc2f9a43"> 106</a></span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a0934384908c2e97e147aa5e8bc2f9a43">operator()</a>()</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; {</div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">auto</span> idx = <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a401933096fa53a7d1bf4355229065040">dd_</a>(<a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a1e713eb6116525962c9280c9c4589979">g_</a>);</div>
<div class="line"><a name="l00109"></a><span class="lineno"> 109</span>&#160; <span class="keywordflow">return</span> *(<a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a6b3f311f99cf92966202b58fbe613b52">first_</a> + idx);</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; }</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160;};</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; </div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Iter, <span class="keyword">typename</span> Generator&gt;</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;Selector&lt;Iter,Generator&gt;</div>
<div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="namespaceripple_1_1test_1_1csf.html#a97d0eb20b3a67fa3dde348b93f32efb2"> 115</a></span>&#160;<a class="code" href="namespaceripple_1_1test_1_1csf.html#a97d0eb20b3a67fa3dde348b93f32efb2">makeSelector</a>(Iter first, Iter last, <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;double&gt;</a> <span class="keyword">const</span>&amp; w, <a class="code" href="classripple_1_1Generator.html">Generator</a>&amp; g)</div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;{</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html">Selector&lt;Iter, Generator&gt;</a>(first, last, w, g);</div>
<div class="line"><a name="l00118"></a><span class="lineno"> 118</span>&#160;}</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160; </div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;<span class="comment">// Additional distributions of interest not defined in in &lt;random&gt;</span></div>
<div class="line"><a name="l00094"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Selector.html#a032c84bf6fee638c3cdc3854b18dbca5"> 94</a></span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a032c84bf6fee638c3cdc3854b18dbca5">Selector</a>(</div>
<div class="line"><a name="l00095"></a><span class="lineno"> 95</span>&#160; RAIter first,</div>
<div class="line"><a name="l00096"></a><span class="lineno"> 96</span>&#160; RAIter last,</div>
<div class="line"><a name="l00097"></a><span class="lineno"> 97</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;double&gt;</a> <span class="keyword">const</span>&amp; w,</div>
<div class="line"><a name="l00098"></a><span class="lineno"> 98</span>&#160; <a class="code" href="classripple_1_1Generator.html">Generator</a>&amp; g)</div>
<div class="line"><a name="l00099"></a><span class="lineno"> 99</span>&#160; : <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a6b3f311f99cf92966202b58fbe613b52">first_</a>{first}, <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a952b63764ab787c690f802085238692b">last_</a>{last}, <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a401933096fa53a7d1bf4355229065040">dd_</a>{w.begin(), w.end()}, <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a1e713eb6116525962c9280c9c4589979">g_</a>{g}</div>
<div class="line"><a name="l00100"></a><span class="lineno"> 100</span>&#160; {</div>
<div class="line"><a name="l00101"></a><span class="lineno"> 101</span>&#160; <span class="keyword">using</span> tag = <span class="keyword">typename</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/iterator/iterator_traits.html">std::iterator_traits&lt;RAIter&gt;::iterator_category</a>;</div>
<div class="line"><a name="l00102"></a><span class="lineno"> 102</span>&#160; static_assert(</div>
<div class="line"><a name="l00103"></a><span class="lineno"> 103</span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same&lt;tag, std::random_access_iterator_tag&gt;::value</a>,</div>
<div class="line"><a name="l00104"></a><span class="lineno"> 104</span>&#160; <span class="stringliteral">&quot;Selector only supports random access iterators.&quot;</span>);</div>
<div class="line"><a name="l00105"></a><span class="lineno"> 105</span>&#160; <span class="comment">// TODO: Allow for forward iterators</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"> 106</span>&#160; }</div>
<div class="line"><a name="l00107"></a><span class="lineno"> 107</span>&#160; </div>
<div class="line"><a name="l00108"></a><span class="lineno"> 108</span>&#160; <span class="keyword">typename</span> <a class="codeRef" href="http://en.cppreference.com/w/cpp/iterator/iterator_traits.html">std::iterator_traits&lt;RAIter&gt;::value_type</a></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1Selector.html#a0934384908c2e97e147aa5e8bc2f9a43"> 109</a></span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a0934384908c2e97e147aa5e8bc2f9a43">operator()</a>()</div>
<div class="line"><a name="l00110"></a><span class="lineno"> 110</span>&#160; {</div>
<div class="line"><a name="l00111"></a><span class="lineno"> 111</span>&#160; <span class="keyword">auto</span> idx = <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a401933096fa53a7d1bf4355229065040">dd_</a>(<a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a1e713eb6116525962c9280c9c4589979">g_</a>);</div>
<div class="line"><a name="l00112"></a><span class="lineno"> 112</span>&#160; <span class="keywordflow">return</span> *(<a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html#a6b3f311f99cf92966202b58fbe613b52">first_</a> + idx);</div>
<div class="line"><a name="l00113"></a><span class="lineno"> 113</span>&#160; }</div>
<div class="line"><a name="l00114"></a><span class="lineno"> 114</span>&#160;};</div>
<div class="line"><a name="l00115"></a><span class="lineno"> 115</span>&#160; </div>
<div class="line"><a name="l00116"></a><span class="lineno"> 116</span>&#160;<span class="keyword">template</span> &lt;<span class="keyword">typename</span> Iter, <span class="keyword">typename</span> Generator&gt;</div>
<div class="line"><a name="l00117"></a><span class="lineno"> 117</span>&#160;Selector&lt;Iter, Generator&gt;</div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="namespaceripple_1_1test_1_1csf.html#aab30eba730bab38bb5920887c8229826"> 118</a></span>&#160;<a class="code" href="namespaceripple_1_1test_1_1csf.html#aab30eba730bab38bb5920887c8229826">makeSelector</a>(Iter first, Iter last, <a class="codeRef" href="http://en.cppreference.com/w/cpp/container/vector.html">std::vector&lt;double&gt;</a> <span class="keyword">const</span>&amp; w, <a class="code" href="classripple_1_1Generator.html">Generator</a>&amp; g)</div>
<div class="line"><a name="l00119"></a><span class="lineno"> 119</span>&#160;{</div>
<div class="line"><a name="l00120"></a><span class="lineno"> 120</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1test_1_1csf_1_1Selector.html">Selector&lt;Iter, Generator&gt;</a>(first, last, w, g);</div>
<div class="line"><a name="l00121"></a><span class="lineno"> 121</span>&#160;}</div>
<div class="line"><a name="l00122"></a><span class="lineno"> 122</span>&#160; </div>
<div class="line"><a name="l00125"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html"> 125</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html">ConstantDistribution</a></div>
<div class="line"><a name="l00126"></a><span class="lineno"> 126</span>&#160;{</div>
<div class="line"><a name="l00127"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a2300ed298952cc710ca15c692c566f3b"> 127</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a2300ed298952cc710ca15c692c566f3b">t_</a>;</div>
<div class="line"><a name="l00128"></a><span class="lineno"> 128</span>&#160; </div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#aa82f5ac93c33f6af25ad3651e1337138"> 130</a></span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#aa82f5ac93c33f6af25ad3651e1337138">ConstantDistribution</a>(<span class="keywordtype">double</span> <span class="keyword">const</span>&amp; t) : <a class="code" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a2300ed298952cc710ca15c692c566f3b">t_</a>{t}</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; {</div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160; }</div>
<div class="line"><a name="l00133"></a><span class="lineno"> 133</span>&#160; </div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Generator&gt;</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; <span class="keyword">inline</span> <span class="keywordtype">double</span></div>
<div class="line"><a name="l00136"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a5ee51e4ddf1942884c02e2f8e3848546"> 136</a></span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a5ee51e4ddf1942884c02e2f8e3848546">operator()</a>(<a class="code" href="classripple_1_1Generator.html">Generator</a>&amp; )</div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; {</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a2300ed298952cc710ca15c692c566f3b">t_</a>;</div>
<div class="line"><a name="l00139"></a><span class="lineno"> 139</span>&#160; }</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160;};</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; </div>
<div class="line"><a name="l00148"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html"> 148</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html">PowerLawDistribution</a></div>
<div class="line"><a name="l00149"></a><span class="lineno"> 149</span>&#160;{</div>
<div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ae5d0dad195562fa147ba23f698709a30"> 150</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ae5d0dad195562fa147ba23f698709a30">xmin_</a>;</div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#aab1c4019f2804456c4b658e9de88ac8c"> 151</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#aab1c4019f2804456c4b658e9de88ac8c">a_</a>;</div>
<div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#abdc9f98b1ab069b7ce1cb0a10be9a3b3"> 152</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#abdc9f98b1ab069b7ce1cb0a10be9a3b3">inv_</a>;</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ab2b2fc269ee594fea2aea8fa6b578572"> 153</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/numeric/random/uniform_real_distribution.html">std::uniform_real_distribution&lt;double&gt;</a> <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ab2b2fc269ee594fea2aea8fa6b578572">uf_</a>{0, 1};</div>
<div class="line"><a name="l00154"></a><span class="lineno"> 154</span>&#160; </div>
<div class="line"><a name="l00155"></a><span class="lineno"> 155</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00156"></a><span class="lineno"> 156</span>&#160; </div>
<div class="line"><a name="l00157"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a21ccb01fd5bf769ad7ece86a67153a64"> 157</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a21ccb01fd5bf769ad7ece86a67153a64">result_type</a> = double;</div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160; </div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a3ee51769d7c192356609bfe75eecddf6"> 159</a></span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a3ee51769d7c192356609bfe75eecddf6">PowerLawDistribution</a>(<span class="keywordtype">double</span> xmin, <span class="keywordtype">double</span> a) : <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ae5d0dad195562fa147ba23f698709a30">xmin_</a>{xmin}, <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#aab1c4019f2804456c4b658e9de88ac8c">a_</a>{a}</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; {</div>
<div class="line"><a name="l00161"></a><span class="lineno"> 161</span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#abdc9f98b1ab069b7ce1cb0a10be9a3b3">inv_</a> = 1.0 / (1.0 - <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#aab1c4019f2804456c4b658e9de88ac8c">a_</a>);</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; }</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; </div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Generator&gt;</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; <span class="keyword">inline</span> <span class="keywordtype">double</span></div>
<div class="line"><a name="l00166"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a7505ba4d585a30553879cd5ab57491f4"> 166</a></span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a7505ba4d585a30553879cd5ab57491f4">operator()</a>(<a class="code" href="classripple_1_1Generator.html">Generator</a>&amp; g)</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; {</div>
<div class="line"><a name="l00168"></a><span class="lineno"> 168</span>&#160; <span class="comment">// use inverse transform of CDF to sample</span></div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; <span class="comment">// CDF is P(X &lt;= x): 1 - (x/xmin)^(1-a)</span></div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ae5d0dad195562fa147ba23f698709a30">xmin_</a> * <a class="codeRef" href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">std::pow</a>(1 - <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ab2b2fc269ee594fea2aea8fa6b578572">uf_</a>(g), <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#abdc9f98b1ab069b7ce1cb0a10be9a3b3">inv_</a>);</div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; }</div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160;};</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; </div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;} <span class="comment">// csf</span></div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160;} <span class="comment">// test</span></div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;} <span class="comment">// ripple</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160; </div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00123"></a><span class="lineno"> 123</span>&#160;<span class="comment">//------------------------------------------------------------------------------</span></div>
<div class="line"><a name="l00124"></a><span class="lineno"> 124</span>&#160;<span class="comment">// Additional distributions of interest not defined in in &lt;random&gt;</span></div>
<div class="line"><a name="l00125"></a><span class="lineno"> 125</span>&#160; </div>
<div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html"> 128</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html">ConstantDistribution</a></div>
<div class="line"><a name="l00129"></a><span class="lineno"> 129</span>&#160;{</div>
<div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a2300ed298952cc710ca15c692c566f3b"> 130</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a2300ed298952cc710ca15c692c566f3b">t_</a>;</div>
<div class="line"><a name="l00131"></a><span class="lineno"> 131</span>&#160; </div>
<div class="line"><a name="l00132"></a><span class="lineno"> 132</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00133"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#aa82f5ac93c33f6af25ad3651e1337138"> 133</a></span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#aa82f5ac93c33f6af25ad3651e1337138">ConstantDistribution</a>(<span class="keywordtype">double</span> <span class="keyword">const</span>&amp; t) : <a class="code" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a2300ed298952cc710ca15c692c566f3b">t_</a>{t}</div>
<div class="line"><a name="l00134"></a><span class="lineno"> 134</span>&#160; {</div>
<div class="line"><a name="l00135"></a><span class="lineno"> 135</span>&#160; }</div>
<div class="line"><a name="l00136"></a><span class="lineno"> 136</span>&#160; </div>
<div class="line"><a name="l00137"></a><span class="lineno"> 137</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Generator&gt;</div>
<div class="line"><a name="l00138"></a><span class="lineno"> 138</span>&#160; <span class="keyword">inline</span> <span class="keywordtype">double</span></div>
<div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a5ee51e4ddf1942884c02e2f8e3848546"> 139</a></span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a5ee51e4ddf1942884c02e2f8e3848546">operator()</a>(<a class="code" href="classripple_1_1Generator.html">Generator</a>&amp;)</div>
<div class="line"><a name="l00140"></a><span class="lineno"> 140</span>&#160; {</div>
<div class="line"><a name="l00141"></a><span class="lineno"> 141</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a2300ed298952cc710ca15c692c566f3b">t_</a>;</div>
<div class="line"><a name="l00142"></a><span class="lineno"> 142</span>&#160; }</div>
<div class="line"><a name="l00143"></a><span class="lineno"> 143</span>&#160;};</div>
<div class="line"><a name="l00144"></a><span class="lineno"> 144</span>&#160; </div>
<div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html"> 151</a></span>&#160;<span class="keyword">class </span><a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html">PowerLawDistribution</a></div>
<div class="line"><a name="l00152"></a><span class="lineno"> 152</span>&#160;{</div>
<div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ae5d0dad195562fa147ba23f698709a30"> 153</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ae5d0dad195562fa147ba23f698709a30">xmin_</a>;</div>
<div class="line"><a name="l00154"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#aab1c4019f2804456c4b658e9de88ac8c"> 154</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#aab1c4019f2804456c4b658e9de88ac8c">a_</a>;</div>
<div class="line"><a name="l00155"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#abdc9f98b1ab069b7ce1cb0a10be9a3b3"> 155</a></span>&#160; <span class="keywordtype">double</span> <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#abdc9f98b1ab069b7ce1cb0a10be9a3b3">inv_</a>;</div>
<div class="line"><a name="l00156"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ab2b2fc269ee594fea2aea8fa6b578572"> 156</a></span>&#160; <a class="codeRef" href="http://en.cppreference.com/w/cpp/numeric/random/uniform_real_distribution.html">std::uniform_real_distribution&lt;double&gt;</a> <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ab2b2fc269ee594fea2aea8fa6b578572">uf_</a>{0, 1};</div>
<div class="line"><a name="l00157"></a><span class="lineno"> 157</span>&#160; </div>
<div class="line"><a name="l00158"></a><span class="lineno"> 158</span>&#160;<span class="keyword">public</span>:</div>
<div class="line"><a name="l00159"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a21ccb01fd5bf769ad7ece86a67153a64"> 159</a></span>&#160; <span class="keyword">using</span> <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a21ccb01fd5bf769ad7ece86a67153a64">result_type</a> = double;</div>
<div class="line"><a name="l00160"></a><span class="lineno"> 160</span>&#160; </div>
<div class="line"><a name="l00161"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a3ee51769d7c192356609bfe75eecddf6"> 161</a></span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a3ee51769d7c192356609bfe75eecddf6">PowerLawDistribution</a>(<span class="keywordtype">double</span> xmin, <span class="keywordtype">double</span> a) : <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ae5d0dad195562fa147ba23f698709a30">xmin_</a>{xmin}, <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#aab1c4019f2804456c4b658e9de88ac8c">a_</a>{a}</div>
<div class="line"><a name="l00162"></a><span class="lineno"> 162</span>&#160; {</div>
<div class="line"><a name="l00163"></a><span class="lineno"> 163</span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#abdc9f98b1ab069b7ce1cb0a10be9a3b3">inv_</a> = 1.0 / (1.0 - <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#aab1c4019f2804456c4b658e9de88ac8c">a_</a>);</div>
<div class="line"><a name="l00164"></a><span class="lineno"> 164</span>&#160; }</div>
<div class="line"><a name="l00165"></a><span class="lineno"> 165</span>&#160; </div>
<div class="line"><a name="l00166"></a><span class="lineno"> 166</span>&#160; <span class="keyword">template</span> &lt;<span class="keyword">class</span> Generator&gt;</div>
<div class="line"><a name="l00167"></a><span class="lineno"> 167</span>&#160; <span class="keyword">inline</span> <span class="keywordtype">double</span></div>
<div class="line"><a name="l00168"></a><span class="lineno"><a class="line" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a7505ba4d585a30553879cd5ab57491f4"> 168</a></span>&#160; <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a7505ba4d585a30553879cd5ab57491f4">operator()</a>(<a class="code" href="classripple_1_1Generator.html">Generator</a>&amp; g)</div>
<div class="line"><a name="l00169"></a><span class="lineno"> 169</span>&#160; {</div>
<div class="line"><a name="l00170"></a><span class="lineno"> 170</span>&#160; <span class="comment">// use inverse transform of CDF to sample</span></div>
<div class="line"><a name="l00171"></a><span class="lineno"> 171</span>&#160; <span class="comment">// CDF is P(X &lt;= x): 1 - (x/xmin)^(1-a)</span></div>
<div class="line"><a name="l00172"></a><span class="lineno"> 172</span>&#160; <span class="keywordflow">return</span> <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ae5d0dad195562fa147ba23f698709a30">xmin_</a> * <a class="codeRef" href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">std::pow</a>(1 - <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ab2b2fc269ee594fea2aea8fa6b578572">uf_</a>(g), <a class="code" href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#abdc9f98b1ab069b7ce1cb0a10be9a3b3">inv_</a>);</div>
<div class="line"><a name="l00173"></a><span class="lineno"> 173</span>&#160; }</div>
<div class="line"><a name="l00174"></a><span class="lineno"> 174</span>&#160;};</div>
<div class="line"><a name="l00175"></a><span class="lineno"> 175</span>&#160; </div>
<div class="line"><a name="l00176"></a><span class="lineno"> 176</span>&#160;} <span class="comment">// namespace csf</span></div>
<div class="line"><a name="l00177"></a><span class="lineno"> 177</span>&#160;} <span class="comment">// namespace test</span></div>
<div class="line"><a name="l00178"></a><span class="lineno"> 178</span>&#160;} <span class="comment">// namespace ripple</span></div>
<div class="line"><a name="l00179"></a><span class="lineno"> 179</span>&#160; </div>
<div class="line"><a name="l00180"></a><span class="lineno"> 180</span>&#160;<span class="preprocessor">#endif</span></div>
</div><!-- fragment --></div><!-- contents -->
<div class="ttc" id="ais_same_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/is_same.html">std::is_same</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1csf_html_a8a244c12011ff67c0b1d21673cbdbd84"><div class="ttname"><a href="namespaceripple_1_1test_1_1csf.html#a8a244c12011ff67c0b1d21673cbdbd84">ripple::test::csf::sample</a></div><div class="ttdeci">std::vector&lt; typename RandomNumberDistribution::result_type &gt; sample(std::size_t size, RandomNumberDistribution dist, Generator &amp;g)</div><div class="ttdoc">Generate a vector of random samples.</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00066">test/csf/random.h:66</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_ab2b2fc269ee594fea2aea8fa6b578572"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ab2b2fc269ee594fea2aea8fa6b578572">ripple::test::csf::PowerLawDistribution::uf_</a></div><div class="ttdeci">std::uniform_real_distribution&lt; double &gt; uf_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00153">test/csf/random.h:153</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1csf_html_aab30eba730bab38bb5920887c8229826"><div class="ttname"><a href="namespaceripple_1_1test_1_1csf.html#aab30eba730bab38bb5920887c8229826">ripple::test::csf::makeSelector</a></div><div class="ttdeci">Selector&lt; Iter, Generator &gt; makeSelector(Iter first, Iter last, std::vector&lt; double &gt; const &amp;w, Generator &amp;g)</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00118">test/csf/random.h:118</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_ab2b2fc269ee594fea2aea8fa6b578572"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ab2b2fc269ee594fea2aea8fa6b578572">ripple::test::csf::PowerLawDistribution::uf_</a></div><div class="ttdeci">std::uniform_real_distribution&lt; double &gt; uf_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00156">test/csf/random.h:156</a></div></div>
<div class="ttc" id="aclassripple_1_1Generator_html"><div class="ttname"><a href="classripple_1_1Generator.html">ripple::Generator</a></div><div class="ttdoc">Produces a sequence of secp256k1 key pairs.</div><div class="ttdef"><b>Definition:</b> <a href="SecretKey_8cpp_source.html#l00059">SecretKey.cpp:59</a></div></div>
<div class="ttc" id="adiscrete_distribution_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/random/discrete_distribution.html">std::discrete_distribution</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Selector_html"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Selector.html">ripple::test::csf::Selector</a></div><div class="ttdoc">Invocable that returns random samples from a range according to a discrete distribution.</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00081">test/csf/random.h:81</a></div></div>
<div class="ttc" id="avector_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/vector.html">vector</a></div></div>
<div class="ttc" id="asize_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/size.html">std::vector::size</a></div><div class="ttdeci">T size(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_a3ee51769d7c192356609bfe75eecddf6"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a3ee51769d7c192356609bfe75eecddf6">ripple::test::csf::PowerLawDistribution::PowerLawDistribution</a></div><div class="ttdeci">PowerLawDistribution(double xmin, double a)</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00159">test/csf/random.h:159</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_a3ee51769d7c192356609bfe75eecddf6"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a3ee51769d7c192356609bfe75eecddf6">ripple::test::csf::PowerLawDistribution::PowerLawDistribution</a></div><div class="ttdeci">PowerLawDistribution(double xmin, double a)</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00161">test/csf/random.h:161</a></div></div>
<div class="ttc" id="arandom_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/header/random.html">random</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Selector_html_a6b3f311f99cf92966202b58fbe613b52"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Selector.html#a6b3f311f99cf92966202b58fbe613b52">ripple::test::csf::Selector::first_</a></div><div class="ttdeci">RAIter first_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00083">test/csf/random.h:83</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1csf_html_aa236c41f4488c39e5e812d7df89555fc"><div class="ttname"><a href="namespaceripple_1_1test_1_1csf.html#aa236c41f4488c39e5e812d7df89555fc">ripple::test::csf::random_weighted_shuffle</a></div><div class="ttdeci">std::vector&lt; T &gt; random_weighted_shuffle(std::vector&lt; T &gt; v, std::vector&lt; double &gt; w, G &amp;g)</div><div class="ttdoc">Return a randomly shuffled copy of vector based on weights w.</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00041">test/csf/random.h:41</a></div></div>
<div class="ttc" id="agenerate_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/generate.html">std::generate</a></div><div class="ttdeci">T generate(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_ae5d0dad195562fa147ba23f698709a30"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ae5d0dad195562fa147ba23f698709a30">ripple::test::csf::PowerLawDistribution::xmin_</a></div><div class="ttdeci">double xmin_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00150">test/csf/random.h:150</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_ae5d0dad195562fa147ba23f698709a30"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#ae5d0dad195562fa147ba23f698709a30">ripple::test::csf::PowerLawDistribution::xmin_</a></div><div class="ttdeci">double xmin_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00153">test/csf/random.h:153</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Selector_html_a401933096fa53a7d1bf4355229065040"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Selector.html#a401933096fa53a7d1bf4355229065040">ripple::test::csf::Selector::dd_</a></div><div class="ttdeci">std::discrete_distribution dd_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00084">test/csf/random.h:84</a></div></div>
<div class="ttc" id="auniform_real_distribution_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/random/uniform_real_distribution.html">std::uniform_real_distribution&lt; double &gt;</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_abdc9f98b1ab069b7ce1cb0a10be9a3b3"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#abdc9f98b1ab069b7ce1cb0a10be9a3b3">ripple::test::csf::PowerLawDistribution::inv_</a></div><div class="ttdeci">double inv_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00152">test/csf/random.h:152</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1ConstantDistribution_html_a5ee51e4ddf1942884c02e2f8e3848546"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a5ee51e4ddf1942884c02e2f8e3848546">ripple::test::csf::ConstantDistribution::operator()</a></div><div class="ttdeci">double operator()(Generator &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00136">test/csf/random.h:136</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_abdc9f98b1ab069b7ce1cb0a10be9a3b3"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#abdc9f98b1ab069b7ce1cb0a10be9a3b3">ripple::test::csf::PowerLawDistribution::inv_</a></div><div class="ttdeci">double inv_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00155">test/csf/random.h:155</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1ConstantDistribution_html_a5ee51e4ddf1942884c02e2f8e3848546"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a5ee51e4ddf1942884c02e2f8e3848546">ripple::test::csf::ConstantDistribution::operator()</a></div><div class="ttdeci">double operator()(Generator &amp;)</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00139">test/csf/random.h:139</a></div></div>
<div class="ttc" id="aiterator_traits_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/iterator/iterator_traits.html">std::iterator_traits</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_aab1c4019f2804456c4b658e9de88ac8c"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#aab1c4019f2804456c4b658e9de88ac8c">ripple::test::csf::PowerLawDistribution::a_</a></div><div class="ttdeci">double a_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00151">test/csf/random.h:151</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html">ripple::test::csf::PowerLawDistribution</a></div><div class="ttdoc">Power-law distribution with PDF.</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00148">test/csf/random.h:148</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_a7505ba4d585a30553879cd5ab57491f4"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a7505ba4d585a30553879cd5ab57491f4">ripple::test::csf::PowerLawDistribution::operator()</a></div><div class="ttdeci">double operator()(Generator &amp;g)</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00166">test/csf/random.h:166</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1ConstantDistribution_html_aa82f5ac93c33f6af25ad3651e1337138"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#aa82f5ac93c33f6af25ad3651e1337138">ripple::test::csf::ConstantDistribution::ConstantDistribution</a></div><div class="ttdeci">ConstantDistribution(double const &amp;t)</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00130">test/csf/random.h:130</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_aab1c4019f2804456c4b658e9de88ac8c"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#aab1c4019f2804456c4b658e9de88ac8c">ripple::test::csf::PowerLawDistribution::a_</a></div><div class="ttdeci">double a_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00154">test/csf/random.h:154</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html">ripple::test::csf::PowerLawDistribution</a></div><div class="ttdoc">Power-law distribution with PDF.</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00151">test/csf/random.h:151</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_a7505ba4d585a30553879cd5ab57491f4"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a7505ba4d585a30553879cd5ab57491f4">ripple::test::csf::PowerLawDistribution::operator()</a></div><div class="ttdeci">double operator()(Generator &amp;g)</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00168">test/csf/random.h:168</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1ConstantDistribution_html_aa82f5ac93c33f6af25ad3651e1337138"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#aa82f5ac93c33f6af25ad3651e1337138">ripple::test::csf::ConstantDistribution::ConstantDistribution</a></div><div class="ttdeci">ConstantDistribution(double const &amp;t)</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00133">test/csf/random.h:133</a></div></div>
<div class="ttc" id="aswap_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/algorithm/swap.html">std::swap</a></div><div class="ttdeci">T swap(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1ConstantDistribution_html"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html">ripple::test::csf::ConstantDistribution</a></div><div class="ttdoc">Constant &quot;distribution&quot; that always returns the same value.</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00125">test/csf/random.h:125</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Selector_html_a0934384908c2e97e147aa5e8bc2f9a43"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Selector.html#a0934384908c2e97e147aa5e8bc2f9a43">ripple::test::csf::Selector::operator()</a></div><div class="ttdeci">std::iterator_traits&lt; RAIter &gt;::value_type operator()()</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00106">test/csf/random.h:106</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1ConstantDistribution_html"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html">ripple::test::csf::ConstantDistribution</a></div><div class="ttdoc">Constant &quot;distribution&quot; that always returns the same value.</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00128">test/csf/random.h:128</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Selector_html_a0934384908c2e97e147aa5e8bc2f9a43"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Selector.html#a0934384908c2e97e147aa5e8bc2f9a43">ripple::test::csf::Selector::operator()</a></div><div class="ttdeci">std::iterator_traits&lt; RAIter &gt;::value_type operator()()</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00109">test/csf/random.h:109</a></div></div>
<div class="ttc" id="anamespaceripple_html"><div class="ttname"><a href="namespaceripple.html">ripple</a></div><div class="ttdoc">Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.</div><div class="ttdef"><b>Definition:</b> <a href="RCLCensorshipDetector_8h_source.html#l00029">RCLCensorshipDetector.h:29</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_a21ccb01fd5bf769ad7ece86a67153a64"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a21ccb01fd5bf769ad7ece86a67153a64">ripple::test::csf::PowerLawDistribution::result_type</a></div><div class="ttdeci">double result_type</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00157">test/csf/random.h:157</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1PowerLawDistribution_html_a21ccb01fd5bf769ad7ece86a67153a64"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1PowerLawDistribution.html#a21ccb01fd5bf769ad7ece86a67153a64">ripple::test::csf::PowerLawDistribution::result_type</a></div><div class="ttdeci">double result_type</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00159">test/csf/random.h:159</a></div></div>
<div class="ttc" id="abegin_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/begin.html">std::vector::begin</a></div><div class="ttdeci">T begin(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Selector_html_a032c84bf6fee638c3cdc3854b18dbca5"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Selector.html#a032c84bf6fee638c3cdc3854b18dbca5">ripple::test::csf::Selector::Selector</a></div><div class="ttdeci">Selector(RAIter first, RAIter last, std::vector&lt; double &gt; const &amp;w, Generator &amp;g)</div><div class="ttdoc">Constructor.</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00094">test/csf/random.h:94</a></div></div>
<div class="ttc" id="asize_t_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/types/size_t.html">std::size_t</a></div></div>
<div class="ttc" id="anamespaceripple_1_1test_1_1csf_html_a97d0eb20b3a67fa3dde348b93f32efb2"><div class="ttname"><a href="namespaceripple_1_1test_1_1csf.html#a97d0eb20b3a67fa3dde348b93f32efb2">ripple::test::csf::makeSelector</a></div><div class="ttdeci">Selector&lt; Iter, Generator &gt; makeSelector(Iter first, Iter last, std::vector&lt; double &gt; const &amp;w, Generator &amp;g)</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00115">test/csf/random.h:115</a></div></div>
<div class="ttc" id="aend_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/container/vector/end.html">std::vector::end</a></div><div class="ttdeci">T end(T... args)</div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1ConstantDistribution_html_a2300ed298952cc710ca15c692c566f3b"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a2300ed298952cc710ca15c692c566f3b">ripple::test::csf::ConstantDistribution::t_</a></div><div class="ttdeci">double t_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00127">test/csf/random.h:127</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1ConstantDistribution_html_a2300ed298952cc710ca15c692c566f3b"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1ConstantDistribution.html#a2300ed298952cc710ca15c692c566f3b">ripple::test::csf::ConstantDistribution::t_</a></div><div class="ttdeci">double t_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00130">test/csf/random.h:130</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Selector_html_a1e713eb6116525962c9280c9c4589979"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Selector.html#a1e713eb6116525962c9280c9c4589979">ripple::test::csf::Selector::g_</a></div><div class="ttdeci">Generator g_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00085">test/csf/random.h:85</a></div></div>
<div class="ttc" id="aclassripple_1_1test_1_1csf_1_1Selector_html_a952b63764ab787c690f802085238692b"><div class="ttname"><a href="classripple_1_1test_1_1csf_1_1Selector.html#a952b63764ab787c690f802085238692b">ripple::test::csf::Selector::last_</a></div><div class="ttdeci">RAIter last_</div><div class="ttdef"><b>Definition:</b> <a href="test_2csf_2random_8h_source.html#l00083">test/csf/random.h:83</a></div></div>
<div class="ttc" id="apow_html"><div class="ttname"><a href="http://en.cppreference.com/w/cpp/numeric/math/pow.html">std::pow</a></div><div class="ttdeci">T pow(T... args)</div></div>