This class represents a collection of CSample objects (samples of connectomes), providing methods to aggregate, analyze, and compute statistics across multiple samples sharing the same Riemannian metric.
list_of_samplesThe list of CSample objects aggregated in this super-sample.
sample_sizeThe total number of connectomes in all samples.
matrix_sizeThe size of the connectome matrices.
mfd_dimThe dimension of the manifold.
riem_metricThe Riemannian metric used by all samples.
variationThe total variation of the aggregated sample.
sample_covThe sample covariance matrix of the aggregated sample.
full_sampleThe aggregated CSample object containing all connectomes.
frechet_meanThe Frechet mean of the aggregated sample.
WithinThe within-group covariance matrix (W).
TotalThe total covariance matrix (T).
new()Initialize a CSuperSample object
CSuperSample$new(samples)samplesA list of CSample objects. All must use the same Riemannian metric.
A new CSuperSample object.
compute_variation()Compute the total variation of the aggregated sample.
CSuperSample$compute_variation()None. This function is called for its side effects. The result is stored in the variation active binding.
compute_sample_cov()Compute the sample covariance matrix of the aggregated sample.
CSuperSample$compute_sample_cov()None. This function is called for its side effects. The result is stored in the sample_cov active binding.
gather()Gather all connectomes from the list of samples into a single CSample object.
CSuperSample$gather()None. This function is called for its side effects. The result is stored in the full_sample active binding.
compute_fmean()Compute the Frechet mean of the aggregated sample.
CSuperSample$compute_fmean(batch_size = NULL)batch_sizeOptional batch size parameter passed to the underlying compute_fmean function.
None. This function is called for its side effects. The result is stored in the frechet_mean active binding.
compute_W()Compute the within-group covariance matrix (W) for the samples.
CSuperSample$compute_W()None. This function is called for its side effects. The result is stored in the Within active binding.
compute_T()Compute the total covariance matrix (T) for the samples.
CSuperSample$compute_T()None. This function is called for its side effects. The result is stored in the Total active binding.
clone()The objects of this class are cloneable with this method.
CSuperSample$clone(deep = FALSE)deepWhether to make a deep clone.