Skip to content

Claude/translate iboss matlab to r o3 p4 o#3

Open
StefanoCipolla wants to merge 6 commits intoOssifragus:masterfrom
StefanoCipolla:claude/translate-iboss-matlab-to-r-o3P4O
Open

Claude/translate iboss matlab to r o3 p4 o#3
StefanoCipolla wants to merge 6 commits intoOssifragus:masterfrom
StefanoCipolla:claude/translate-iboss-matlab-to-r-o3P4O

Conversation

@StefanoCipolla
Copy link

Rscript

claude and others added 5 commits February 3, 2026 09:35
- iboss_od.m: Native MATLAB port of the R iboss.od() function for
  Information-Based Optimal Subdata Selection in linear regression.
  Supports both univariate and multivariate covariates, with optional
  intercept adjustment using full-data means.
- iboss_demo.m: Demo script replicating the R package example with
  multivariate t-distributed covariates, including comparison against
  full-data OLS.

https://claude.ai/code/session_01LaRwUj5TgHCq2hKP3puUJR
…DxKuL

Add MATLAB implementation of IBOSS algorithm
Translates the MATLAB experimental script to R, using the original
iboss.od() function with its compiled C++ backend (getIdx/getIdxR)
instead of the pure-MATLAB reimplementation. Reads .mat data files
via R.matlab::readMat and computes the D-optimality objective
log(det(X_S * X_S')) for each problem instance.

https://claude.ai/code/session_01TYn581iJVFKwrT3BYBJvBP
@StefanoCipolla
Copy link
Author

No

…anslation

Port getIdx() and getIdxR() from src/getIdx.cpp (R C API) to MATLAB MEX API,
preserving the same O(n) std::nth_element algorithm. iboss_od_mex.m mirrors
iboss.r by delegating index selection to the compiled C++ routines.

New files:
- matlab/getIdx_mex.cpp    – MEX port of getIdx (unrestricted)
- matlab/getIdxR_mex.cpp   – MEX port of getIdxR (restricted, with exclusion)
- matlab/iboss_od_mex.m    – iboss_od rewritten to call MEX functions
- matlab/compile_mex.m     – one-step build script

https://claude.ai/code/session_01TYn581iJVFKwrT3BYBJvBP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments