mescla.emma.projection

Projection into and out of the mixing subspace (U-space).

U-space is the reduced coordinate system spanned by the retained eigenvectors. Its usefulness is geometric: in U-space a set of conservative mixtures of k+1 end-members falls inside a simplex whose vertices are those end-members, so you can look at whether your candidates bound the data.

S-space, by contrast, is the space of the original solutes.

Functions

project_endmembers

Place candidate end-members in the samples' U-space.

project_to_subspace

Orthogonal projection of Z onto the mixing subspace, still in S-space.

subspace_distance

Euclidean distance of each water from the mixing subspace, in standardised units.

u_space

Coordinates of standardised data in the k-dimensional mixing subspace.