You are not logged in.

#1 2022-08-10 16:50:05

linuxscoop
Member
Registered: 2022-08-09
Posts: 26

[SOLVED] Get list of trending packages. Trending algorithm?

I've got the following data from pkgstats and I would like to get a sole value for each browser to sort them by which one has gained or lost more popularity lately. The popularity for the recent months is in the later values.

Which trending algorithm could I use for this? I've found this one but it doesn't seem to fit this use case.

[{firefox [78.71 78.86 78.29 76.1 74.39 73.86 74.6 79.24 80.33 80.29 81.9 82.09 82.4 82.73 82.71 82.41 83.22 83.8 83.89 83.67 83.37 82.51 81.98 79.97 80.56 81.1 80.68 80.73 81.04 81.32 81.35 82.39 81.99 81.16 81.3 80.56 81.23 80.9 79.56 79.84 79.63 78.05 77.14 76.71 76.97 77.81 77.96 77.72 78.31 78.91 80.16 79.82 78.92 78.88 78.37 78.49 78.62 78.94 78.71 78.74 78.86 79.5 79.63 78.23 78.02 76.97 76.04 76.57 76.53 75.77 74.82 74.05 74.06 72.98 72.71 71.85 71.73 72.77 72.36 72.11 73.54 73.95 73.67 73.31 73.68 72.49 72.89 75.92 74.37 75.25 76.1 75.12 75.12 74.56 74.2 74.87 75.14 75.6 75.32 75.88]} {chromium [51.33 52.09 51.09 51.62 52.62 52.02 54.5 54.92 53.26 54.65 55.46 58.93 59.04 59.56 59.76 56.6 56.99 56.54 57.39 56.21 56.4 56.46 56.6 58.29 58.3 58.58 58.8 60.35 60.77 60.24 59.72 61.05 61.12 60.53 60.2 59.36 59.81 59.66 59.41 59.03 58.85 58.92 57.85 59.15 57.3 56.88 55.98 56.46 56.51 57.52 58.58 57.82 57.92 57.34 57.09 55.97 56.37 56.25 55.36 56.27 56.18 56.91 58.31 57.51 58.24 58.17 57.57 57.55 57.28 57.17 56.89 57.04 55.24 55.23 55.53 54.94 55.26 56.64 56.59 56.96 57.11 57.78 57.76 56.88 56.67 56.46 55.73 57.63 56.46 55.88 54.31 55.22 55.1 54.69 54.12 54.41 54.31 53.22 53.24 52.94]} {google-chrome [3.63 2.02 1.94 2.15 2.24 2.4 2.48 2.67 2.49 2.63 2.67 3.05 2.93 2.89 4.17 7.7 8.32 9.66 8.02 9.79 9.46 9.66 8.98 7.03 8.04 8.62 9.23 8.06 8.27 8.6 8.72 8.31 8.39 8.32 9.06 9.69 9.4 9.38 9.09 8.86 9.12 9.95 11.2 11.26 13.22 14.16 14.23 14.88 16.74 17.26 18.08 18.7 18.73 19.69 20.8 21.19 21.82 22.66 21.88 22.44 22.96 22.53 23.02 22.86 22.29 22.89 22.86 22.69 23.38 23.12 23.98 24.73 24.55 24 23.43 23.75 24.09 24.32 25.17 25.26 26.43 26.5 26.44 27.59 27.56 26.94 27.23 27.58 26.85 27.37 27.15 26.41 25.51 26.1 25.66 25.45 25.51 25.22 25.43 26.21]} {epiphany [23.54 24.07 28.13 27.46 28.65 29.09 27.93 27.49 28.94 27.07 27.8 26.93 27.52 28.55 29.24 27.87 28.02 28.13 27.1 27.95 27.26 27.09 25.24 23.63 23.31 23.98 23.3 22.34 22.85 22.47 23.09 24.96 23.97 22.81 23.43 23.35 22.86 23.89 24.21 22.02 23.37 21.63 22.64 23.02 22.58 23.22 23.23 23.45 23.36 23.89 25.17 24.64 25.88 25.77 25.87 26.13 25.53 26.41 26.43 26.09 25.95 27.96 27.1 26.34 25.85 25.7 25.37 25.58 25.29 26.02 25.47 25.12 22.84 22.43 22.66 21.98 22.12 22.44 22.53 22.57 22.16 21.48 21.02 21.33 21.32 21.88 21.49 22.62 21.29 21.63 23.53 21.84 21.26 21.05 19.83 19.65 20.99 20.46 19.84 20.61]} {konqueror [0.06 3.82 11.31 12.45 12.92 12.53 13.09 13.65 13.14 13.03 13.19 13.21 12.84 13.47 12.98 12.77 12.81 13.15 12.86 12.3 12.56 11.65 11.99 12.16 11.7 12.34 13.12 13.06 12.93 13.59 12.97 13.35 12.31 11.44 12.09 10.68 10.81 10.82 10.85 10.97 11.06 10.85 10.86 11.17 10.8 11.11 11.09 10.92 11.4 11.87 12.03 11.84 11.82 10.94 9.81 9.87 10.39 10.14 10.11 10.53 10.05 10.62 10.62 10.09 9.95 10.28 10.24 10.15 10.3]} {tor-browser [0.01 0.31 0.7 0.93 1.39 1.69 1.89 1.93 2 2.67 2.51 3.03 3.09 3.35 4.03 4.16 4.35 4.44 4.93 4.87 5.14 5.7 7.61 7.08 8.04 8.59 8.24 8.63 10.41 11.1 11.44 10.75 11.37 11.67 12.1 12.24 12.13 11.58 11.27 11.25 10.85 10.54 10.49 10.2 10.42 10.09 10.39 10.43 10.2 9.22 7.99 8.22 8.49 8.43 8.34 8.56 8.65 8.67 8.6 8.71 9.02 9.41 9.6 9.06 9.05]} {vivaldi [0.01 2.04 2.37 2.43 2.56 2.51 2.52 2.51 2.52 2.8 2.68 2.95 3.03 3.28 3.56 4.43 5.51 5.61 5.5 5.86 6.17 5.84 5.53 5.75 5.71 6.07 6.01 6.19 6.53 6.37 6.39 5.96 6.88 7.21 6.99 7.07 6.16 6.66 6.48 6.28 6.17 6.4 6.33 5.98 6.27 6.28 6.59 6.83 7.66 8.3 8.08 8.51 7.77 8.22 8.1 7.49 6.68 5.49 5.23 5.11 5.2 5.44 5.39 5.13 5.27 5.44 5.34 5.48 5.47 5.33 5.13 5.4 5.79 6.18 6.54 6.17 5.73 6.12 6.12 6.28 6.37 7.94 8.19 8.68 8.47 8.54 8.72 8.15 7.85 7.46 7.43]} {opera [20.48 20.34 24.41 25.44 26.91 28.84 28.65 28.36 29.34 28.53 30.06 30 30.58 31.78 32.1 31.92 32.38 33.33 31.73 33.37 33.61 33.95 31.19 25.37 25.3 25.89 26.05 25.72 25.43 25.15 25.22 26.42 25.85 25.52 24.86 24.84 25.48 25.63 25.03 24.19 25.02 22.43 22.06 21.98 20.06 19.05 18.37 18.91 18.67 18.87 20.25 18.93 19.29 18.7 17.99 18.37 19.02 19.22 18.94 18.06 17.96 19.18 19 18.58 18.01 17.28 17 16.49 16.77 17.5 17.5 16.91 14.1 14.54 14.53 14.52 14.42 14.95 14.9 14.75 15.08 15.39 15.17 15.15 14.68 14.7 14.61 14.48 13.64 14.55 13.92 13.56 13.82 13.82 13.51 13.23 13.27 12.37 12.46 12.92]} {midori [15.85 14.62 13.84 13.3 13.84 13.68 13.97 14.9 14.31 14.46 15.18 14.63 14.65 15.07 15.05 15.6 15.32 15.34 15.89 15.72 15.74 15.71 15.49 11.37 11.38 11.37 11.61 11.48 11.71 11.69 11.67 11.54 12.48 12.12 12.38 8.3 8.83 8.45 8.22 8.12 7.66 7.55 7.3 7.61 7.71 8.06 8.28 7.91 8.3 8.46 8.67 8.6 8.43 8.2 8.33 8.32 8.65 8.3 8.72 8.71 10.43 10.69 10.05 9.78 9.97 9.82 9.3 8.96 8.83 8.83 9.07 9.15 8.95 9.01 9.07 9.28 9.06 8.8 8.57 8.71 8.09 8.17 7.99 7.23 7.21 7.31 7.67 7.41 6.84 7.04 7.16 7.14 6.95 6.34 6.12 6.45 5.79 5.59 5.68 5.49]}]

Last edited by linuxscoop (2024-05-11 14:17:38)

Offline

#2 2022-08-10 21:20:31

linuxscoop
Member
Registered: 2022-08-09
Posts: 26

Re: [SOLVED] Get list of trending packages. Trending algorithm?

I ended up using the zscore algorithm as mentioned here: https://stackoverflow.com/a/826509

Offline

Board footer

Powered by FluxBB