Data Rep Flashcards
Absolute error
Postive difference between the actual value and the floating point value
[Actual number - floating number]
Relative error
Absolute error divided by the actual value
Disadvantage of majority voting
volume of data being transmitted is
increased with the repetition of bits
Checksums
An algorithm is used to determine the value of a checksum based on the data being transmitted. There is no agreed algorithm for this and different systems will use their own solutions
Check Digit
a type of checksum in which only a single digit is added to the transmitted data. This reduces the number of different algorithms that could be used to calculate the value of the check digit and so reduces the variety of errors that the method can detect.
Digital to Analogue Conversion
When converting from digital to analogue, a device called a digital to analogue converter is used. The device reads a bit pattern representing an analogue signal
and outputs an analogue electrical current.
Analogue to digital Conversion
Use an analogue to digital converter to convert the analogue signal to a digital bit pattern. The device works by taking a reading of an analogue signal at regular intervals and recording the value in a process called sampling. Samples are taken at a specific frequency, which determines the number of samples taken per second. Once the value of the analogue signal has been recorded, it can be stored digitally as a bit pattern.
Nyquist Theorem
The Nyquist theorem states that the sampling rate of a digital audio file must be at least twice the frequency of the sound.
Musical Instrument Digital Interface (MIDI)
Used with electronic musical instruments
which can be connected to computers, MIDI stores sound as a series of event messages,each of which represents an event in a piece of music. These can be thought of as a series of instructions which could be used to recreate a piece of music.
Event messages a MIDI can store
-Duration of a note
-Instrument with which a note is played
-How loud a note is (Volume)
Advantages of using a MIDI over a sampled recording of a piece of music
-Allows for easy manipulation without loss of quality
-Instruments can be changed
-Notes can be changed
-Durtation of notes can be altered
-Smaller in size
Disadvantage of using a MIDI
Cant be used for storing speech
Often results in less realistic sound.
Two methods of lossless compression
-RLE
-Dictionary encoding
Run length encoding
Reduces the size of a file by removing repeated information and replacing it with one occurance of the repeated information followed by the number of times it is to be repeated.
Dictionary encoding
A dictionary containing repeated data is appended to the file. This method results is a significant reduction in size, but don’t forget that the dictionary used to compress the data has to be present in the file in order for the image to be reproduced. This will increase the size of the file.