Click or drag to resize
Accord.NET (logo)

IdxReader Class

Reader for IDX files (such as MNIST's digit database).
Inheritance Hierarchy
SystemObject
  Accord.IOIdxReader

Namespace:  Accord.IO
Assembly:  Accord.IO (in Accord.IO.dll) Version: 3.8.0
Syntax
public class IdxReader : IDisposable
Request Example View Source

The IdxReader type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyBaseStream
Returns the underlying stream.
Public propertyDataType
Gets the type of the data stored in this file.
Public propertyDimensions
Gets the number of dimensions for the samples.
Public propertyMagic
MNIST's magic number. See remarks for more details
Public propertySamples
Gets the number of samples stored in this file.
Top
Methods
  NameDescription
Public methodDispose
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Protected methodDispose(Boolean)
Releases unmanaged and - optionally - managed resources
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Releases unmanaged resources and performs other cleanup operations before the IdxReader is reclaimed by garbage collection.
(Overrides ObjectFinalize.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodRead
Reads the next sample into the given array.
Public methodReadMatrix
Reads the next sample as a matrix.
Public methodReadMatrixT
Reads the next sample as a matrix.
Public methodReadToEndAsMatricesT
Reads all samples in the file, starting from the current position, as matrices.
Public methodReadToEndAsValuesT
Reads all samples in the file, starting from the current position, as vectors.
Public methodReadToEndAsVectorsT
Reads all samples in the file, starting from the current position, as vectors.
Public methodReadValue
Reads the next sample as a value.
Public methodReadVector
Reads the next sample as a vector.
Public methodReadVectorT
Reads the next sample as a vector.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberTranslate
Translates the given IdxDataType to a .NET Type.
Public methodTryReadValueT
Reads the next sample as a value.
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
See Also