pub struct ClearSkyThresholds {
pub window_length_minutes: f64,
pub mean_diff: f64,
pub max_diff: f64,
pub lower_line_length: f64,
pub upper_line_length: f64,
pub var_diff: f64,
pub slope_dev: f64,
pub max_iterations: usize,
}Expand description
Thresholds for detect_clearsky (Reno–Hansen 2016).
Default values match pvlib-python defaults for 10-minute windows of
1-minute GHI data. Use ClearSkyThresholds::from_sample_interval to
get the Jordan–Hansen (2023) values interpolated for a specific
sample interval.
Fields§
§window_length_minutes: f64Centered sliding-window length, in minutes.
mean_diff: f64Max |mean(meas) - α·mean(clear)| per window [W/m²].
max_diff: f64Max |max(meas) - α·max(clear)| per window [W/m²].
lower_line_length: f64Lower bound on line_length(meas) - line_length(α·clear).
upper_line_length: f64Upper bound on line_length(meas) - line_length(α·clear).
var_diff: f64Upper bound on the normalised std-dev of slopes (Hz⁻¹).
slope_dev: f64Upper bound on the max |Δ(meas − α·clear)| per window.
max_iterations: usizeMaximum iterations for the α rescaling fixed-point.
Implementations§
Source§impl ClearSkyThresholds
impl ClearSkyThresholds
Sourcepub fn from_sample_interval(sample_interval_minutes: f64) -> Self
pub fn from_sample_interval(sample_interval_minutes: f64) -> Self
Interpolate thresholds for a given sample interval (Jordan &
Hansen 2023, Table 1). Valid for sample_interval_minutes ∈ [1, 30].
Trait Implementations§
Source§impl Clone for ClearSkyThresholds
impl Clone for ClearSkyThresholds
Source§fn clone(&self) -> ClearSkyThresholds
fn clone(&self) -> ClearSkyThresholds
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClearSkyThresholds
impl Debug for ClearSkyThresholds
Source§impl Default for ClearSkyThresholds
impl Default for ClearSkyThresholds
Source§impl PartialEq for ClearSkyThresholds
impl PartialEq for ClearSkyThresholds
impl Copy for ClearSkyThresholds
impl StructuralPartialEq for ClearSkyThresholds
Auto Trait Implementations§
impl Freeze for ClearSkyThresholds
impl RefUnwindSafe for ClearSkyThresholds
impl Send for ClearSkyThresholds
impl Sync for ClearSkyThresholds
impl Unpin for ClearSkyThresholds
impl UnsafeUnpin for ClearSkyThresholds
impl UnwindSafe for ClearSkyThresholds
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more