QuantLib: a free/open-source library for quantitative finance
fully annotated source code - version 1.34
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Sample< T > Struct Template Reference

weighted sample More...

#include <sample.hpp>

+ Inheritance diagram for Sample< T >:
+ Collaboration diagram for Sample< T >:

Public Types

typedef T value_type
 

Public Member Functions

 Sample (T value, Real weight)
 

Public Attributes

T value
 
Real weight
 

Detailed Description

template<class T>
struct QuantLib::Sample< T >

weighted sample

Definition at line 35 of file sample.hpp.

Member Typedef Documentation

◆ value_type

typedef T value_type

Definition at line 37 of file sample.hpp.

Constructor & Destructor Documentation

◆ Sample()

Sample ( T  value,
Real  weight 
)

Definition at line 38 of file sample.hpp.

Member Data Documentation

◆ value

T value

Definition at line 39 of file sample.hpp.

◆ weight

Real weight

Definition at line 40 of file sample.hpp.