oILAB
Loading...
Searching...
No Matches
Ensemble.h
Go to the documentation of this file.
1
//
2
// Created by Nikhil Chandra Admal on 8/5/24.
3
//
4
5
#ifndef OILAB_ENSEMBLE_H
6
#define OILAB_ENSEMBLE_H
7
8
#include <iostream>
9
10
namespace
oILAB
{
11
template
<
typename
StateType,
typename
SystemType,
typename
Derived>
12
class
Ensemble
{
13
public
:
14
const
Derived &
derived
;
15
16
Ensemble
() :
derived
(static_cast<const Derived &>(*this)) {}
17
18
SystemType
constructSystem
(
const
StateType &state)
const
{
19
return
derived
.constructSystem(state);
20
}
21
22
std::pair<StateType, SystemType>
23
sampleNewState
(
const
StateType ¤tState) {
24
return
derived
.sampleNewState(currentState);
25
}
26
};
27
}
// namespace oILAB
28
29
#endif
//OILAB_ENSEMBLE_H
oILAB::Ensemble
Definition
Ensemble.h:12
oILAB::Ensemble::Ensemble
Ensemble()
Definition
Ensemble.h:16
oILAB::Ensemble::derived
const Derived & derived
Definition
Ensemble.h:14
oILAB::Ensemble::sampleNewState
std::pair< StateType, SystemType > sampleNewState(const StateType ¤tState)
Definition
Ensemble.h:23
oILAB::Ensemble::constructSystem
SystemType constructSystem(const StateType &state) const
Definition
Ensemble.h:18
oILAB
Definition
BiCrystal.cpp:13
include
MonteCarlo
Ensemble.h
Generated on Sat Mar 28 2026 00:15:04 for oILAB by
1.9.8