Skip to content

Very different results produced by abundances() with methods "bary" and "nnls" #66

Open

Description

@aloboa

While results with the demo_data and the code in the README.md file are very similar,
I get very different results for each method with a multispectral image.
See details in: https://rpubs.com/alobo/bary_nnls
Data available: https://saco.csic.es/s/gks74wNwW4rKrcX

Activity

  1. rguliev commented on Jun 25, 2026

    @rguliev
    Collaborator

    Thanks for sharing a reproducible result.
    I have to refer to same paper again. You can check section "4.1.7. Abundance inversion" and references in it.
    You can also check discussion in our Python package here.
    In my thesis, I have a more detailed discussion. It should be soon available here.

    The idea is that these two methods use a different approach and, therefore, are not supposed to give the same output.
    The reason that they produce a similar output in README.md is that the data is synthetic, i.e. perfect mixture where all assumptions are met.
    In real world data, this is quite rare. So, you are more likely to see different outputs.

  2. self-assigned this
    on Jun 25, 2026
  3. added
    Topic: documentation 📘
    on Jun 25, 2026
  4. rguliev commented on Jun 25, 2026

    @rguliev
    Collaborator

    I think it is worth to update the README.md similar to the Python package, so I keep the issue for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Topic: documentation 📘

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions