Record Class BitcoinPrice
java.lang.Object
java.lang.Record
smile.datasets.BitcoinPrice
- Record Components:
data- data frame.
Bitcoin Price history on a daily basis from April-28th, 2013 to Feb-20th,
2018.
Date, Open, High, Low, Close, Volume, Market Cap "Feb 20, 2018",11231.80,11958.50,11231.80,11403.70,"9,926,540,000","189,536,000,000" "Feb 19, 2018",10552.60,11273.80,10513.20,11225.30,"7,652,090,000","178,055,000,000" "Feb 18, 2018",11123.40,11349.80,10326.00,10551.80,"8,744,010,000","187,663,000,000" ...
References
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.BitcoinPrice(Path path) Constructor.BitcoinPrice(DataFrame data) Creates an instance of aBitcoinPricerecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]logPrice()Returns the log of closing price series, which are commonly believed to be unit-root non-stationary.double[]price()Returns the closing price series, which are commonly believed to be non-stationary.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BitcoinPrice
Constructor.- Throws:
IOException- when fails to read the file.
-
BitcoinPrice
Constructor.- Parameters:
path- the data path.- Throws:
IOException- when fails to read the file.
-
BitcoinPrice
-
-
Method Details
-
price
public double[] price()Returns the closing price series, which are commonly believed to be non-stationary.- Returns:
- the closing price series.
-
logPrice
public double[] logPrice()Returns the log of closing price series, which are commonly believed to be unit-root non-stationary.- Returns:
- the log of closing price series.
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
data
-