MythTV
master

#include "galleryviews.h"
#include <algorithm>
#include <cmath>
#include <random>
#include <QRandomGenerator>
Go to the source code of this file.
Macros  
#define  LOC QString("Galleryviews: ") 
Variables  
const static int  kMaxFolderThumbnails = 4 
Number of thumbnails to use for folders. More...  
const double  LEADING_BETA_SHAPE = 0.175 
Tuning parameter for seasonal weights, between 0 and 1, where lower numbers give greater weight to seasonal photos. More...  
const double  TRAILING_BETA_SHAPE = 0.31 
See LEADING_BETA_SHAPE. More...  
const double  DEFAULT_WEIGHT 
Photos without an exif timestamp will default to the mode of the beta distribution. More...  
const qint64  BETA_CLIP = 60 * 60 * 24 
The edges of the distribution get clipped to avoid a singularity. More...  
#define LOC QString("Galleryviews: ") 
Definition at line 10 of file galleryviews.cpp.

static 
Number of thumbnails to use for folders.
Definition at line 13 of file galleryviews.cpp.
Referenced by DirectoryView::LoadFromDb(), and DirectoryView::PopulateThumbs().
const double LEADING_BETA_SHAPE = 0.175 
Tuning parameter for seasonal weights, between 0 and 1, where lower numbers give greater weight to seasonal photos.
The leading beta shape controls dates that are approaching and the trailing beta shape controls dates that just passed. When these are set to 0.175 and 0.31, respectively, about one quarter of the photos are from the upcoming week in prior years and about one quarter of the photos are from the preceding month in prior years.
Definition at line 21 of file galleryviews.cpp.
Referenced by FlatView::CalculateSeasonalWeights().
const double TRAILING_BETA_SHAPE = 0.31 
See LEADING_BETA_SHAPE.
Definition at line 23 of file galleryviews.cpp.
Referenced by FlatView::CalculateSeasonalWeights().
const double DEFAULT_WEIGHT 
Photos without an exif timestamp will default to the mode of the beta distribution.
Definition at line 26 of file galleryviews.cpp.
Referenced by FlatView::CalculateSeasonalWeights().
const qint64 BETA_CLIP = 60 * 60 * 24 
The edges of the distribution get clipped to avoid a singularity.
Definition at line 29 of file galleryviews.cpp.
Referenced by FlatView::CalculateSeasonalWeights().