Function to calculate R2 (R-squared) in R

You need a little statistical knowledge to see this. R squared between two vectors is just the square of their correlation. So you can define you function as: Add New Post about:blankImage: Change block type or styleChange alignmentAdd titleFunction to calculate R2 (R-squared) in R You need a little statistical knowledge to see this. R … Read more

Implementing a HashMap in C

Well if you know the basics behind them, it shouldn’t be too hard. Generally you create an array called “buckets” that contain the key and value, with an optional pointer to create a linked list. When you access the hash table with a key, you process the key with a custom hash function which will … Read more

Curl incosistent behaviour – CLI vs Java process

Trying to grab HTML for ttps://www.target.com.au/ with cUrl This works ok via command-line: This always fail via Java: OUTPUT: /usr/bin/curl -L -v -k -i -H “Accept: text/html” -H “User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36” –max-time 10 https://www.target.com.au/ HTTP/2 403 server: AkamaiGHost mime-version: 1.0 content-type: text/html content-length: 270 expires: Fri, … Read more