|
Advanced Chunk Processing Library 0.2.0
A comprehensive C++ library for advanced data chunking strategies and processing operations
|
Wavelet-based chunking strategy using signal processing principles. More...
#include <sophisticated_chunking.hpp>
Collaboration diagram for sophisticated_chunking::WaveletChunking< T >:Public Member Functions | |
| WaveletChunking (size_t window_size=8, double threshold=0.5) | |
| Constructor for wavelet-based chunking. | |
| std::vector< std::vector< T > > | chunk (const std::vector< T > &data) const |
| Chunk data based on wavelet transform analysis. | |
| double | get_threshold () const |
| Get the coefficient threshold for chunk boundaries. | |
| std::string | get_wavelet_type () const |
| Get the current wavelet type. | |
| size_t | get_window_size () const |
| Get the size of the sliding window. | |
| void | set_threshold (double threshold) |
| Set the coefficient threshold for chunk boundaries. | |
| void | set_wavelet_type (const std::string &type) |
| Set the wavelet type. | |
| void | set_window_size (size_t size) |
| Set the size of the sliding window. | |
Private Member Functions | |
| std::vector< double > | computeWaveletCoefficients (const std::vector< T > &data) const |
| Compute discrete wavelet transform coefficients. | |
Private Attributes | |
| double | threshold_ |
| std::string | wavelet_type_ |
| size_t | window_size_ |
Wavelet-based chunking strategy using signal processing principles.
| T | The type of elements to be chunked |
Definition at line 22 of file sophisticated_chunking.hpp.
|
inline |
Constructor for wavelet-based chunking.
| window_size | Size of the sliding window |
| threshold | Coefficient threshold for chunk boundaries |
Definition at line 79 of file sophisticated_chunking.hpp.
|
inline |
Chunk data based on wavelet transform analysis.
| data | Input data to be chunked |
Definition at line 87 of file sophisticated_chunking.hpp.
References sophisticated_chunking::WaveletChunking< T >::computeWaveletCoefficients(), and sophisticated_chunking::WaveletChunking< T >::threshold_.
Referenced by demonstrate_wavelet_chunking(), TEST_F(), and TEST_F().
|
inlineprivate |
Compute discrete wavelet transform coefficients.
| data | Input data sequence |
Definition at line 33 of file sophisticated_chunking.hpp.
References sophisticated_chunking::WaveletChunking< T >::wavelet_type_, and sophisticated_chunking::WaveletChunking< T >::window_size_.
Referenced by sophisticated_chunking::WaveletChunking< T >::chunk().
|
inline |
Get the coefficient threshold for chunk boundaries.
Definition at line 128 of file sophisticated_chunking.hpp.
References sophisticated_chunking::WaveletChunking< T >::threshold_.
|
inline |
Get the current wavelet type.
Definition at line 154 of file sophisticated_chunking.hpp.
References sophisticated_chunking::WaveletChunking< T >::wavelet_type_.
|
inline |
Get the size of the sliding window.
Definition at line 120 of file sophisticated_chunking.hpp.
References sophisticated_chunking::WaveletChunking< T >::window_size_.
|
inline |
Set the coefficient threshold for chunk boundaries.
| threshold | Coefficient threshold for chunk boundaries |
Definition at line 146 of file sophisticated_chunking.hpp.
References sophisticated_chunking::WaveletChunking< T >::threshold_.
|
inline |
Set the wavelet type.
| type | Wavelet type ("haar", "db1", or "sym2") |
Definition at line 162 of file sophisticated_chunking.hpp.
References sophisticated_chunking::WaveletChunking< T >::wavelet_type_.
|
inline |
Set the size of the sliding window.
| size | Size of the sliding window |
Definition at line 136 of file sophisticated_chunking.hpp.
References sophisticated_chunking::WaveletChunking< T >::window_size_.
|
private |
Definition at line 25 of file sophisticated_chunking.hpp.
Referenced by sophisticated_chunking::WaveletChunking< T >::chunk(), sophisticated_chunking::WaveletChunking< T >::get_threshold(), and sophisticated_chunking::WaveletChunking< T >::set_threshold().
|
private |
|
private |