Skip to content

Commit 53f40a4

Browse files
committed
Add plotting and regression utilities for memory analysis
- Introduced `PlutusBenchmark.Plotting` module for generating and saving various plots, including prediction and scatter plots. - Implemented functions to ensure the data output directory exists and to save plots with actual and predicted data points. - Added `PlutusBenchmark.RegressionInteger` module for finding the best integer slope and intercept that minimize the sum of squared errors (SSE) for given data points. - Included continuous ordinary least squares (OLS) computation to assist in determining the best fit.
1 parent 85ce1fd commit 53f40a4

File tree

15 files changed

+1325
-40
lines changed

15 files changed

+1325
-40
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
module Main (main) where
2+
3+
import PlutusBenchmark.MemoryAnalysis qualified as Analysis
4+
5+
main :: IO ()
6+
main = do
7+
measurements <- Analysis.generateMeasurements
8+
Analysis.analyzePredictValueMemory measurements
9+
Analysis.analyzePredictDataMemory measurements
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.svg
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Directory to host generated plot images locally (ignored by git)

0 commit comments

Comments
 (0)