Ice is a program that performs calculations on a data set containing information about winters from 1855-2017.
The command line arguments for Ice should be formatted as: FLAG [arg1 arg2] FLAG can be an integer value ranging from 1-900. Arg1 and arg2 are optional and will only be used for certain FLAGs.
-java Ice 100
-Prints the year and resulting number of days with ice for each winter in the data set.
-java Ice 200
-Prints n (number of winters in data set), the mean number of days with ice, and the standard deviation.
-java Ice 300 B0 B1
-B0: Beta 0 value. -B1: Beta 1 value.
-Prints the mean squared error (MSE) for given Beta0 and Beta1 values.
-java Ice 400 B0 B1
-B0: Beta 0 value. -B1: Beta 1 value.
-Prints corresponding gradient to given Beta0 and Beta1 values.
-java Ice 500 N T
-N: N scalar value used in formula. -T: Number of iterations to calculate.
-Prints corresponding gradient with calculated Beta values over T iterations.
-java Ice 600
-Prints Beta0, Beta1, and MSE values from a closed-form solution for ordinary least squared in one dimmension.
-java 700 y
-y: Year to estimate number of days of ice with.
-Prints estimated number of days of ice for a given year based on data set.
-java 800 N T
-N: N scalar value used in formula. -T: Number of iterations to calculate.
-Prints B0, B1, and MSE with Xi substitution using stdx over T iterations.
-java 900 N T
-N: N scalar value used in formula. -T: Number of iterations to calculate.
-Prints B0, B1, and MSE based on estimate from random entry in data set.