Skip to contents

All functions

base_constraint()
Constraint Function for Base Fit Edge Alignment
calculate_dlmo()
Calculate Dim-Light Melatonin Onset (DLMO)
calculate_slopes()
Calculate Slopes Between Data Points
constraints()
Compute Constraint Violations for Parallelogram Fit
decimal_to_posixct()
Convert Decimal Hours to POSIXct Timestamps
define_ascending_segment()
Define the ascending segment of a melatonin profile
define_base_segment()
Define the base segment of a melatonin profile
define_intermediate_segment()
Define Intermediate Segment of Melatonin Profile
define_roi()
Define Region of Interest (ROI) for Melatonin Profile
fit()
Fit Two Splines Around a Point of Interest (POI)
fit_linear()
Perform a Weighted Linear Fit
fit_profile()
Fit a Melatonin Profile to Base or Ascending Segment
get_corners()
Compute the Four Corner Points of a Parallelogram
get_inflection()
Identify the Inflection Point in a Melatonin Profile
make_grid()
Generate a Grid of Points Within a Region of Interest
nl_constraints()
Nonlinear Constraints for Parabolic Fitting
objective()
Objective Function for Parallelogram Optimization
objective_function()
Objective Function for Line or Parabola Fitting
optimize_parallelogram()
Main Function to Optimize Parallelogram
parallelogram_fit()
Apply Parallelogram Truncation and Convert Back to Datetime
plot_fit()
Add DLMO Fit Lines to a Melatonin Profile Plot
plot_ip()
Add DLMO Inflection Point to the Plot
plot_parallelogram()
Overlay a Parallelogram on a Melatonin Profile Plot
plot_profile()
Generate a Melatonin Profile Plot
plot_raw_profile()
Plot Raw Melatonin Profile
plot_roi()
Add Region of Interest (ROI) to a Plot
plot_roi_heatmap()
Add ROI Heatmap to a Plot
poi_constraints()
Enforce Slope Constraints at the Point of Interest (POI)
posixct_to_decimal()
Convert POSIXct Timestamps to Decimal Hours
preprocess_profile()
Preprocess Profile Data
run_residual_explorer()
Launch the residual explorer Shiny app
seek_inflection()
Seek the Inflection Point in a Melatonin Profile
truncate_ascending_segment()
Truncate Ascending Segment of Melatonin Profile
truncate_base_segment()
Truncate the Base Segment of a Melatonin Profile
validate_df_structure()
Validate and Standardize Dataframe Structure for Melatonin Analysis
validate_melatonin_profile
Data Validation and Preprocessing Functions