mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Move DecayingSample to algorithm
This commit is contained in:
@@ -17,11 +17,10 @@
|
||||
*/
|
||||
//==============================================================================
|
||||
|
||||
#ifndef RIPPLE_RESOURCE_DECAYINGSAMPLE_H_INCLUDED
|
||||
#define RIPPLE_RESOURCE_DECAYINGSAMPLE_H_INCLUDED
|
||||
#ifndef RIPPLE_ALGORITHM_DECAYINGSAMPLE_H_INCLUDED
|
||||
#define RIPPLE_ALGORITHM_DECAYINGSAMPLE_H_INCLUDED
|
||||
|
||||
namespace ripple {
|
||||
namespace Resource {
|
||||
|
||||
/** Sampling function using exponential decay to provide a continuous value. */
|
||||
template <int Window,
|
||||
@@ -92,7 +91,6 @@ private:
|
||||
elapsed_type m_when;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -21,6 +21,7 @@
|
||||
|
||||
#include "ripple_resource.h"
|
||||
|
||||
#include "../algorithm/api/DecayingSample.h"
|
||||
#include "../algorithm/api/DiscreteClock.h"
|
||||
|
||||
#include "beast/modules/beast_core/system/BeforeBoost.h"
|
||||
@@ -29,7 +30,6 @@
|
||||
#include "impl/Fees.cpp"
|
||||
# include "impl/Kind.h"
|
||||
# include "impl/Key.h"
|
||||
# include "impl/DecayingSample.h"
|
||||
# include "impl/Tuning.h"
|
||||
# include "impl/Entry.h"
|
||||
# include "impl/Import.h"
|
||||
|
||||
Reference in New Issue
Block a user