Package smile.datasets
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 aBitcoinPrice
record class. -
Method Summary
Modifier and TypeMethodDescriptiondata()
Returns the value of thedata
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
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 String
toString()
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
Creates an instance of aBitcoinPrice
record class.- Parameters:
data
- the value for thedata
record component
-
-
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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
Returns the value of thedata
record component.- Returns:
- the value of the
data
record component
-