Releases: ChristianGoueguel/HotellingEllipse
Releases · ChristianGoueguel/HotellingEllipse
HotellingEllipse 1.2.0
Updates:
- Fixed issue #3
- Improved package documentation.
- Added more robust checks for input types and values
- Added an
is_integer
function that uses implicit integer division. When a number is divided by 1 using integer division (%/%
), the result will be equal to the original number only if it's an integer. Theis_integer
function is used to checkk
,pcx
, andpcy
. - Improved error messages to be more informative and specific.
- Converted input to matrix once at the beginning to avoid repeated conversions.
- For both
ellipseParam
andellipseCoord
functions, the code is restructured into smaller, more focused functions for better readability and maintainability. - Extracted the columns
x[, pcx]
andx[, pcy]
into separate vectorsx_col
andy_col
before using them in the calculations. Usedrop = TRUE
to ensure that even ifx
is a single-column matrix, it's converted to a vector. - Added three new parameters for the
ellipseParam
function:threshold
,real.tol
, andabs.tol
. Thethreshold
parameter selects the minimum number ofk
components that cumulatively explain at least the specified proportion of variance. As for the two tolerance parameters,rel_tol
(for relative tolerance) andabs_tol
(for absolute tolerance), serve as variance threshold of components deemed negligible if their variance is below EITHER of these thresholds. - Implemented a three-dimensional extension to the
ellipseCoord
function by introducing a third axis parameter,pcz
. This addition enables the computation of coordinates for 3D ellipsoids, expanding the function's capabilities beyond its previous 2D computation. - Renamed some variables for better clarity (e.g.,
m
topts
)
HotellingEllipse 1.1.0
HotellingEllipse 1.1.0 is now on CRAN
- Fixed issue handling
data.frame
input in theellipseParam
andellipseCoord
functions (#2) - Updates in the package documentation