Ticket #7917: fix_comment_typo.patch

File fix_comment_typo.patch, 10.9 KB (added by oss.2012.team+G1@…, 10 years ago)
  • boost/accumulators/statistics/tail_quantile.hpp

     
    4646        @brief Tail quantile estimation based on order statistics (for both left and right tails)
    4747
    4848        The estimation of a tail quantile \f$\hat{q}\f$ with level \f$\alpha\f$ based on order statistics requires the
    49         chaching of at least the \f$\lceil n\alpha\rceil\f$ smallest or the \f$\lceil n(1-\alpha)\rceil\f$ largest samples,
     49        caching of at least the \f$\lceil n\alpha\rceil\f$ smallest or the \f$\lceil n(1-\alpha)\rceil\f$ largest samples,
    5050        \f$n\f$ being the total number of samples. The largest of the \f$\lceil n\alpha\rceil\f$ smallest samples or the
    5151        smallest of the \f$\lceil n(1-\alpha)\rceil\f$ largest samples provides an estimate for the quantile:
    5252
  • boost/accumulators/statistics/weighted_p_square_quantile.hpp

     
    4444
    4545        For further details, see
    4646
    47         R. Jain and I. Chlamtac, The P^2 algorithmus for dynamic calculation of quantiles and
     47        R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and
    4848        histograms without storing observations, Communications of the ACM,
    4949        Volume 28 (October), Number 10, 1985, p. 1076-1085.
    5050
     
    8080                this->heights[cnt - 1] = args[sample];
    8181
    8282                // In this initialization phase, actual_positions stores the weights of the
    83                 // inital samples that are needed at the end of the initialization phase to
     83                // initial samples that are needed at the end of the initialization phase to
    8484                // compute the correct initial positions of the markers.
    8585                this->actual_positions[cnt - 1] = args[weight];
    8686
  • boost/accumulators/statistics/skewness.hpp

     
    3131        @brief Skewness estimation
    3232
    3333        The skewness of a sample distribution is defined as the ratio of the 3rd central moment and the \f$ 3/2 \f$-th power
    34         of the 2nd central moment (the variance) of the sampless 3. The skewness can also be expressed by the simple moments:
     34        of the 2nd central moment (the variance) of the samples 3. The skewness can also be expressed by the simple moments:
    3535
    3636        \f[
    3737            \hat{g}_1 =
  • boost/accumulators/statistics/p_square_cumul_dist.hpp

     
    4141
    4242        For further details, see
    4343
    44         R. Jain and I. Chlamtac, The P^2 algorithmus for dynamic calculation of quantiles and
     44        R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and
    4545        histograms without storing observations, Communications of the ACM,
    4646        Volume 28 (October), Number 10, 1985, p. 1076-1085.
    4747
  • boost/accumulators/statistics/weighted_tail_variate_means.hpp

     
    3737namespace boost
    3838{
    3939    // for _BinaryOperatrion2 in std::inner_product below
    40     // mutliplies two values and promotes the result to double
     40    // multiplies two values and promotes the result to double
    4141    namespace numeric { namespace functional
    4242    {
    4343        ///////////////////////////////////////////////////////////////////////////////
  • boost/accumulators/statistics/weighted_extended_p_square.hpp

     
    5454        K. E. E. Raatikainen, Simultaneous estimation of several quantiles, Simulation, Volume 49,
    5555        Number 4 (October), 1986, p. 159-164.
    5656
    57         The extended \f$ P^2 \f$ algorithm generalizess the \f$ P^2 \f$ algorithm of
     57        The extended \f$ P^2 \f$ algorithm generalizes the \f$ P^2 \f$ algorithm of
    5858
    59         R. Jain and I. Chlamtac, The P^2 algorithmus for dynamic calculation of quantiles and
     59        R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and
    6060        histograms without storing observations, Communications of the ACM,
    6161        Volume 28 (October), Number 10, 1985, p. 1076-1085.
    6262
  • boost/accumulators/statistics/p_square_quantile.hpp

     
    4444
    4545        For further details, see
    4646
    47         R. Jain and I. Chlamtac, The P^2 algorithmus fordynamic calculation of quantiles and
     47        R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and
    4848        histograms without storing observations, Communications of the ACM,
    4949        Volume 28 (October), Number 10, 1985, p. 1076-1085.
    5050
     
    105105            {
    106106                std::size_t sample_cell = 1; // k
    107107
    108                 // find cell k such that heights[k-1] <= args[sample] < heights[k] and ajust extreme values
     108                // find cell k such that heights[k-1] <= args[sample] < heights[k] and adjust extreme values
    109109                if (args[sample] < this->heights[0])
    110110                {
    111111                    this->heights[0] = args[sample];
  • boost/accumulators/statistics/extended_p_square.hpp

     
    5555        K. E. E. Raatikainen, Simultaneous estimation of several quantiles, Simulation, Volume 49,
    5656        Number 4 (October), 1986, p. 159-164.
    5757
    58         The extended \f$ P^2 \f$ algorithm generalizess the \f$ P^2 \f$ algorithm of
     58        The extended \f$ P^2 \f$ algorithm generalizes the \f$ P^2 \f$ algorithm of
    5959
    60         R. Jain and I. Chlamtac, The P^2 algorithmus for dynamic calculation of quantiles and
     60        R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and
    6161        histograms without storing observations, Communications of the ACM,
    6262        Volume 28 (October), Number 10, 1985, p. 1076-1085.
    6363
     
    256256        typedef accumulators::impl::extended_p_square_impl<mpl::_1> impl;
    257257
    258258        #ifdef BOOST_ACCUMULATORS_DOXYGEN_INVOKED
    259         /// tag::extended_p_square::probabilities named paramter
     259        /// tag::extended_p_square::probabilities named parameter
    260260        static boost::parameter::keyword<tag::probabilities> const probabilities;
    261261        #endif
    262262    };
  • boost/accumulators/statistics/weighted_variance.hpp

     
    6464            ,\quad n\ge2,\quad\hat{\sigma}_0^2 = 0.
    6565        \f]
    6666        where \f$\bar{w}_n\f$ is the sum of the \f$n\f$ weights \f$w_i\f$ and \f$\hat{\mu}_n\f$
    67         the estimate of the mean of the weighted smaples. Note that the sample variance is not defined for
     67        the estimate of the mean of the weighted samples. Note that the sample variance is not defined for
    6868        \f$n <= 1\f$.
    6969    */
    7070    template<typename Sample, typename Weight, typename MeanFeature, typename Tag>
  • boost/accumulators/statistics/weighted_p_square_cumul_dist.hpp

     
    4242
    4343        For further details, see
    4444
    45         R. Jain and I. Chlamtac, The P^2 algorithmus for dynamic calculation of quantiles and
     45        R. Jain and I. Chlamtac, The P^2 algorithm for dynamic calculation of quantiles and
    4646        histograms without storing observations, Communications of the ACM,
    4747        Volume 28 (October), Number 10, 1985, p. 1076-1085.
    4848
  • boost/accumulators/framework/accumulators/droppable_accumulator.hpp

     
    215215        template<typename Args>
    216216        void on_drop(Args const &args)
    217217        {
    218             // cache the result at the point this calcuation was dropped
     218            // cache the result at the point this calculation was dropped
    219219            BOOST_ASSERT(!this->has_result());
    220220            this->set(this->Accumulator::result(args));
    221221        }
  • libs/accumulators/test/weighted_p_square_cumul_dist.cpp

     
    7272    histogram_type histogram_upper = weighted_p_square_cumulative_distribution(acc_upper);
    7373    histogram_type histogram_lower = weighted_p_square_cumulative_distribution(acc_lower);
    7474
    75     // Note that applaying importance sampling results in a region of the distribution
     75    // Note that applying importance sampling results in a region of the distribution
    7676    // to be estimated more accurately and another region to be estimated less accurately
    7777    // than without importance sampling, i.e., with unweighted samples
    7878
  • libs/accumulators/example/main.cpp

     
    123123//  Demonstrate how to calculate weighted statistics. This example demonstrates
    124124//  both a simple weighted statistical calculation, and a more complicated
    125125//  calculation where the weight statistics are calculated and stored in an
    126 //  external weight accumulataor.
     126//  external weight accumulator.
    127127void example3()
    128128{
    129129    // weight == double