Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Number of unique values #7

Open
UschiKlute opened this issue Feb 11, 2018 · 1 comment
Open

Number of unique values #7

UschiKlute opened this issue Feb 11, 2018 · 1 comment

Comments

@UschiKlute
Copy link

UschiKlute commented Feb 11, 2018

After I counted the unique values myself I have noticed that the number for "uniq" seems to be 1 too high. Could you check this, please?
I used the commands
catmandu convert MARC to Breaker --handler marc < file1.mrc > file2.txt
and
catmandu breaker file2.txt > breaker.txt

@phochste
Copy link
Member

phochste commented Feb 11, 2018

Hi, from the documentation: https://metacpan.org/pod/Catmandu::Exporter::Stat

* the 'uniq%' and 'entropy' fields are estimated and are normally within 1% of the
  correct value (this is done to keep the memory requirements of this module low)

The use case for the Stats module is for huge datasets where not everything needs to fit into memory. The uniq fields are an approximation of the number of unique values and can be within +/- 1% of the actual value.

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

No branches or pull requests

2 participants