반응형

Eric Niebler

저작권 © 2005, 2006 Eric Niebler

Boost 소프트웨어 라이센스에 의해 배포되어졌다(참부파일을 보세요 LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)

목록

서문

사용자의 가이드
Accumulators 프레임워크
통계의 Accumulators 라이브러리
감사의 글
참고사항
Accumulators 프레임워크 참고문서
통계적 라이브러리 참고문서
수 연산들 라이브러리 참고문서

서문

정확히 잘못된 것 보다 대략 맞는게 더 낫다

-- 속담

설명

Boost.Accumulators 는 대체적으로 증분 계산을 위한 확장가능한 프레임워크 분만 아니라 증분 통계 계산을 위한 라이브러리 입니다

라이브러리는 accumulator 의 개념을 주로 취급합니다 그리고 accumulator 는 몇몇의 내부상태를 유지하고 한번에 데이터 한 샘플을 받아들이는 기본 계산에관한 엔티티입니다.

이 accumulators는 다른 accumulators에 있는 그들의 계산 몇몇을 떠남길지도 모른다 그리고 다른 accumulators를 accumulators가 의존합니다

Accumulators 는 accumulator 세트 하나와 함께 그룹화되어집니다.

Boost.Accumulators는 한 세트안의 accumulators 와 accumulators가 적절한 명령에서 처리되어지는 것을 보장하는 것 사이에서

상호의존성을 해결합니다

최근 2010년 8월 15일at 23:42:55 GMT 에 수정되었습니다.


유저 가이드

이 섹션은 새로운 accumulators를 생성하기위한 Boost.Accumulators 프레임워크를 사용하는 방법 그리고 증분 통계적 계산을

수행하기 위한 존재하는 통계적 accumulators를 사용하기 위한 방법을 설명합니다

Boost.Accumulators에 구체적인 구성요소에 관한 상세한 정보를 위해서, Reference 섹션을 확인하세요

Hello, World!

아래에 Accumulators 프리엠워크를 사용하는 방법과 증분 통계적 계산을 수행하기 위한 통계적 Accumulators에 대한 완전한 예제가 있습니다.

그것은 평균과 더블(doubles)의 시퀀스에대한 2nd moment(통계학 용어) 를 계산합니다.

#include <iostream>
#include <boost/accumulators/accumulators.hpp>
#include <boost/accumulators/statistics/stats.hpp>
#include <boost/accumulators/statistics/mean.hpp>
#include <boost/accumulators/statistics/moment.hpp>
using namespace boost::accumulators;

int main()
{
    // 2nd moment와 평균을 계산하는 것을 위한 accumulator 세트를 정의합니다
accumulator_set<double, stats<tag::mean, tag::moment<2> > > acc; // 몇몇의 데이터를 넣습니다 ... acc(1.2); acc(2.3); acc(3.4); acc(4.5); // 결과를 보여줍니다 ... std::cout << "Mean: " << mean(acc) << std::endl; std::cout << "Moment: " << accumulators::moment<2>(acc) << std::endl; return 0; }

이 프로그램은 다음을 보여줍니다:

Mean:   2.85
Moment: 9.635

* 이하 보류(0)


번역된 원문

http://www.boost.org/doc/libs/1_51_0/doc/html/accumulators.html

http://www.boost.org/doc/libs/1_51_0/doc/html/accumulators/user_s_guide.html

반응형

+ Recent posts