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

Add weight to heatmap classes #1902

Closed
metemaddar opened this issue Jan 26, 2023 · 3 comments
Closed

Add weight to heatmap classes #1902

metemaddar opened this issue Jan 26, 2023 · 3 comments
Assignees

Comments

@metemaddar
Copy link
Contributor

metemaddar commented Jan 26, 2023

Each opportunity, can have a weight in their config. We can add this weight to get the final heat of hexagon (?)
The formula for adding weight can be like the following:

$$\huge \frac{\sum Q_i \times w_i }{\sum w_i}$$ $$Q: quantile$$ $$w: weight$$
@metemaddar metemaddar self-assigned this Jan 26, 2023
@metemaddar metemaddar added this to the v1.5 milestone Jan 26, 2023
@metemaddar metemaddar added the API label Jan 26, 2023
metemaddar added a commit to metemaddar/goat that referenced this issue Jan 26, 2023
@metemaddar
Copy link
Contributor Author

metemaddar commented Jan 26, 2023

An example of the result is the following:
[3.0, 2.7, 2.0, 2.0, 3.0, 3.3, 2.7, 3.0, 1.3, 3.7, 2.7, 4.0, 3.3, 2.0, 3.3, 2.7, 2.7, 2.3]
min: 1.3
max: 4
Here we completely lose the 0s and 5s.

@EPajares
Copy link
Collaborator

Yes though this depends on the data. In some case we might have only 0 and in other mostly 5. So we can reach values close to 0 or 5.

@p4b-bro
Copy link

p4b-bro bot commented Jun 6, 2023

This task/issue closed on Tue Jun 06 2023 ✅

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