简体   繁体   中英

boost accumulators library - how to find “Mode” and “r-squared”?

I have vector of doubles and need to find "mode" and "r-squared" values using boost library. I can find mean, min/max, count, variance using boost::accumulators but can't find anything for "mode" or "r-square" values in there.

Perhaps "accumulators" is not the library within boost that I should be using?

Any help will be greatly appreciated.

Thanks!

In case someone else makes the same mistake:

R-square (coefficient of determination) is just a correlation*correlation. And correlation, of course, is part of boost accumulators library.

I did not read the definition of r-square carefully enough, silly me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM