Arithmetic coding with probability estimation based on decision history

Abstract: Apparatus and method for adapting the estimated probability of either the less likely or more likely outcome (event) of a binary decision in a sequence of binary decisions involves the up-dating of the estimated probability in response to the renormalization of an augend A.The augend A changes value with each binary decision, the size of the change depending on which of the binary events has occurred as input. Re-normalization of A occurs when the A value becomes less than a prescribed minimum value AMIN. According to the invention, there may be differing contexts in which binary decisions may occur, each context having a corresponding estimated probability value which is up-dated with binary decisions in the respective context. Also according to the invention, there may be one or more possible next values for an estimated probability in response to a given binary decision event. The selection of one of multiple possible next values in response to a given binary decision event is preferably determined based on a renormalization correlation count.

Description: BACKGROUND OF THE INVENTION A. Field of the Invention The present invention involves the adapting of an estimated probability of a decision event as successive decisions are processed. B. Description of the Problem Various phenomena are represented as binary decisions in which one of two decision symbols (such as yes and no) is characterized by one probability (Pr) and the other symbol is characterized by a probability (1-Pr). The less likely symbol is typically referred to as the less probable symbol LPS whereas the other symbol is referred to as the more probable symbol MPS. For example, in optical imaging, a frame of data may include a plurality of picture elements (or pels) which can be black or white. In a particular area of the frame, black pels may predominate. The probability of a white pel being in such an area is then the less probable event and the probability of a white pel being noted in the area may be characterized as Pr. Over time, the relative likelihood of black pels and white pels in the area may change, so that Pr and (1-Pr) may vary. In fact, over time white pels may become dominant in the area. In various environments such as that outlined hereinabove, binary decisions are processed in some manner dependent on the probabilities Pr and (1-Pr) of the respective LPS and MPS decision outcomes. In prior technology, the probability Pr is initially determined as an estimate from previous data or as an estimate based on intuition, mathematics, assumptions, a statistics collection, or the like. In some instances, the initial estimate may be used throughout the processing of decision data even though the original estimate may deviate considerably from the probability reflected in actual data. In other instances, however, the estimated value for the probability is made to track the actual probability as reflected by actual data. In compressing and decompressing data based on binary arithmetic coding, for example, the estimate of the probability of an LPS event is notably important. In binary arithmetic coding, successive binary decisions are mapped into successively smaller, lesser-included probability intervals along a number line. In particular, for each binary decision an interval is partitioned into a P segment and a Q segment. The length of each segment is intended to correspond to the respective probability of the event or symbol corresponding to the segment. According to this type of coding, if there is an MPS event, the P segment becomes the new interval which is then partitioned into two segments for the next decision. Alternatively, if a less probable LPS event is encoded, the Q segment becomes the new interval which is then partitioned. A significant aspect of the compression achieved by arithmetic coding resides in the fact that the P segment is represented by fractional bits whereas the Q segment is represented by one or more bits. Because the MPS event is more likely to occur, a great majority of events are encoded with relatively few bits. To accurately allocate the portions of a number line interval and to ensure that the proper number of bits is allocated to each possible binary event, the respective probabilities should be reasonably accurate. Accordingly, adapting an estimated probability of the LPS event or MPS event as conditions change is particularly significant in arithmetic encoding. In one approach to the problem of adapting the probabilities of an arithmetic coding device, a prior method has been suggested in which symbol probabilities are generated to reflect data history. One article which discusses such prior art is included in the IBM Technical Disclosure Bulletin in volume 22, No. 7, December 1979, pp. 2880-2882, and is entitled "Method for Converting Counts to Coding Parameters" (by G.G. Langdon, Jr. and J.J. Rissanen). The article states that it is desired to detect changes in the symbol probabilities from observed symbol occurrences, and to modify the LPS probability q accordingly. One approach suggested by the article is to change q to reflect the number of counts of one symbol divided by the total number of symbols counted during a symbol string. That is, if k is the counts for one symbol and n is the number of counts for both symbols, symbol probability is changed based on k/n. Another article by Langdon and Rissanen, "Compression of Black-White Images with Arithmetic Coding", IEEE Transactions on Communications, volume COM-29, No. 6, pp. 858-867, June 1981, also discusses adapting probabilities in an arithmetic coding environment. In discussing adaptation to nonstationary statistics, the IEEE article proceeds on page 865 as follows: "Suppose that we have received r [consecutive] 0's at state z, and our current estimate of the probability of [symbol] s(i) being 0 is p=c0/c [where c0 is a count defined as c(0 z,s(0)...s(t)) and c is a count defined as c(z,s(0)...s(t))] . We receive the symbol s(i). If s(i) is 0, we test: Is p′(r+1)H≧0.2? If yes, we regard the observation as being ... consistent with our estimate of p, and we update c0 and c by 1 to form a new estimate. ... If, however, p′(r+1)<0.2, the observation is likely an indication of changed statistics, and we ought to be prepared to change our estimates to a larger value of p. We do this by halving the counts c0 and c before updating them by 1. If the received symbol s(i) is 1, we do the same confidence test using the probability p(r).... In reality, for the sake of easier implementation, we put suitable upper and lower bounds on the count of the less probable symbol for each skew value Q [Q(s)] to indicate when to halve or not the counts." In describing the Q(s) value, it is noted that the IEEE article discusses the approximating of the less probable symbol probability to the nearest value of 2 -Q(s) where Q(s) is an integer referred to as the "skew number". A further discussion of probability adaptation in an arithmetic coding skew coder is set forth in an article by G.G. Langdon, Jr. entitled "An Introduction to Arithmetic Coding", IBM Journal of Research and Development,; vol. 28, n. 2, March 1984, 135-149. As noted hereinabove, the skew coder is limited to probability values which are powers of 2 (for example, 1/2, 1/4, 1/8, ...). Although the skew coder can provide rapid adaptation, the limitation on possible probability values to powers of 2 results in inefficiency when the probability is at or near 0.5. Other prior technology includes U.S. Patents 4467317, 4286256, and 4325085 and an IBM Technical Disclosure Bulletin article in volume 23, No. 11, April 1981, pp. 5112-5114, entitled "Arithmetic Compression Code Control Parameters Approximation" (by D.R. Helman, G.G. Langdon, Jr., and J.J. Rissanen). The cited references are incorporated herein by reference to provide background information. SUMMARY OF THE INVENTION The present invention addresses the problem of providing a computationally simple yet nearly optimum technique for adaptively determining symbol probabilities, especially in a binary arithmetic coding environment. One sample environment of the invention is in binary arithmetic coding. In binary arithmetic coding, a number interval shrinks to successively smaller dimensions after each decision in a sequence of decisions is encoded. How much a current interval shrinks in response to an encoded decision event depends on the outcome of the decision, the size of the resulting interval being relatively large for more probable outcomes and relatively small for less probable outcomes. Each resulting interval is represented as an augend value A. If the augend value A is less than a prescribed minimum value AMIN, the augend value A is renormalized to exceed AMIN. In other environments as well an augend value may be defined which is renormalized in response to decision event inputs. In accordance with one preferred mode of the present invention, there is a table of probability values associated with one of the two possible binary events that can result from a decision. At a given time and for a given context in which decisions are made, one table value is identified as the current probability value. According to the invention, a renormalization of the augend A in response to the encoding of a decision event prompts an up-dating of the current probability value. That is, providing the table has sufficient entries, a pointer moves to a higher probability value in response to a renormalization caused by a first type of decision event and moves to a lower probability value caused by the other type of binary decision event. It is thus an object of the invention to provide for up-dating the probability value of a decision event based on augend renormalization. This object is achieved by a method according to Claim 1. In a particular embodiment of the invention, decisions may be associated with differing contexts. For example, black-white binary picture element (pel) decisions may be applied to differing contexts --a first context perhaps applying to a neighborhood of pels having much more black pels than white pels, a second context applying to a predominantly white pel area, and a third context in which the pels may be fairly evenly distributed. The present invention permits the processing of decisions in such multiple contexts, wherein for each context there is a respective table value identified therefor. It is thus another object of the invention to adapt the probability value for each respective context in response to the encoding of decision events in the respective context. Moreover, in one multiple context embodiment, it is a related object to adapt the probability values for differing contexts based on the renormalization of a common augend value. In another multiple context embodiment, each context has a respective augend value associated therewith. Also according to the invention, the "rate" at which adaptation occurs may be varied. In a first single rate embodiment, the present invention permits a current value to be (a) incremented to one prescribed higher value in the table in response to renormalization following a first type of binary decision input and (b) decremented to one prescribed lower value in the table in response to renormalization following the other type of binary decision input. For example, in the event of an LPS renormalization, the estimated probability value Q e ; of the LPS event increments to the next prescribed higher value in the table whereas in the event of an MPS renormalization, the estimated probability for Q e ; decrements to the next lower value in the table. In an alternative, multiple rate embodiment, any of a plurality of probability values can succeed a current value. In particular, when there is a high renormalization correlation (i.e., numerous successive LPS renormalizations, MPS renormalizations, or both), larger changes in the probability value are provided. It is thus another object of the invention to permit the probability value to index through the table over varying distances depending on the instability recognized through renormalization correlation, in order to move more rapidly to correct for assumed gross errors in estimation. In accordance with one embodiment of the invention, the paths that can be followed from probability value to probability value in the table are specified in accordance with a finite state machine implementation. That is, a plurality of states are provided, one of which is the current state for a given time. The current state indicates not only what the present probability value is but also reflects a history of prior renormalizations in the possible next states linked thereto. In another embodiment, selection of the next probability value from among the possible succeeding values is determined logically. Based on a count indicative of renormalization correlation, the current probability value is up-dated to a next value which may be more than the next higher or lower value in the table. For an ordered table, the present invention thus achieves the object of permitting indexing by various prescribed increments along the table depending on renormalization correlation. It is yet a further object of the invention to choose entries in the probability value table to balance increment and decrement probabilities at each probability value. Moreover, in choosing values for the table, it is an additional object of the invention to avoid probability values which are too close to the minimal augend value. Such values would too readily prompt MPS renormalization. Finally, the present invention provides good adaptation over the range of possible probability values and permits a convenient method of probability adaptation without event counters being required. BRIEF DESCRIPTION OF THE DRAWINGS Fig. 1 is an illustration showing the changing of the estimated probability value Q e in response to augend renormalization. Fig. 2 is a graph showing coding inefficiency. Fig. 3 is a table showing current information stored for differing decision contexts. Fig. 4 is an illustration showing a sequence of decision inputs in various contexts. Fig. 5 is an illustration of a finite state machine embodiment of the invention which features single-rate probability up-dating. Fig. 6 is an illustration of a finite state machine implementation of the invention featuring multi-rate up-dating of the probability value. Fig. 7 is a diagram showing the present invention in an arithmetic coding environment. Fig. 8 through Fig. 35 are flowcharts depicting an implementation of the present invention in an arithmetic coding environment. Fig. 36 is an illustration depicting a word/speech recognition environment to which the present invention is applicable. DESCRIPTION OF THE INVENTION I. An Arithmetic Coding Embodiment A. Arithmetic Coding and Probability Adaptation Environment The above-cited prior art articles by Langdon and by Langdon and Rissanen discuss arithmetic coding in detail and are incorporated herein by reference for such teachings. Arithmetic coding has been found to be a powerful technique for encoding strings of data symbols into compressed form, transferring the compressed (encoded) data, and retrieving the original data symbol string by means of a decoder which undoes the encoding. Arithmetic coding derives its power from two basic attributes: (1) the ability to approach the entropy limit in coding efficiency and (2) the ability to dynamically change the probabilities of the symbols being encoded. In accordance with arithmetic coding, a plurality of decisions are to be encoded to represent a point on a number line. The point is associated with a number line interval which uniquely represents a particular sequence of decisions. Such encoding is accomplished by initially defining a current interval bounded by two points on a number line. The current interval is then partitioned into segments, each segment corresponding to one of the possible events that may result from a decision. The possible events should be exclusive; no segments overlap. In a multiple symbol environment, each decision can result in one of m events (where 2≦m). The length of each segment is determined by the relative probability of the decision event corresponding thereto. That is, the larger the decision event probability, the larger the segment corresponding thereto. This is significant, in that larger segments can be represented by fewer bits; hence, the events which should be encoded more frequently are represented by relatively few bits. For binary arithmetic coding in which m=2, a less probable symbol LPS event may correspond to either a YES or a NO symbol (or event) for a given YES/NO (Y/N) decision; the other event then corresponding to a more probable symbol MPS event. The segments are conveniently referred to as the Q segment (which corresponds to the less probable event) and the P segment (which corresponds to the more probable event). The length of the Q segment corresponds to the estimated probability Q e for the LPS event and the P segment corresponds to the probability (1- Q e ). If the Q segment is at the lower-in-value end of the number line, the coding scheme is styled a P/Q scheme. However, as noted in the co-pending European patent application EP-A-0260 462 filed on even date herewith, entitled "Arithmetic Coding for Data Compression/De-compression By Selectively Employed Diverse Arithmetic Coding Encoders and Decoders," invented by J. L. Mitchell and W. B. Pennebaker, the ordering of the segments may be varied. The above-referenced application is incorporated herein by reference for the discussion of various arithmetic coding embodiments with which the present invention may be employed. Referring to the P/Q binary arithmetic coding scheme by way of example, a code point C is specified to point at the bottom of a current interval. Depending on whether the next event is an LPS or MPS event, the Q segment or P segment, respectively, is selected as the current interval which is then divided into a Q segment and P segment, and so on. The current interval continues to shrink with each decision, and the point C identifying successive current intervals increases in precision. The value of the current interval is represented as an augend value A. To facilitate computation, the augend value is maintained within prescribed limits. For example, A can be held between 0.5 and 1, or between 0.75 and 1.5, or between 1.0 and 2.0. The advantages achieved by these choices are noted herein and in a co-pending European patent application EP-A-0260 461 filed on even date herewith, invented by researchers at the IBM corporation and entitled: Arithmetic Coding Encoder and Decoder System. At this point it should be noted that, traditionally, probability intervals range between 0 and 1. Although having a probability interval bound which exceeds unity may appear improper, prescribing such a limit results in no adverse consequences and in fact facilitates coding because of renormalization. When the augend value A falls below the lower limit AMIN, the augend value is renormalized. In particular, the renormalization involves multiplying the augend value by two (or some power of two) to bring the value of A to above AMIN. As noted hereinbelow, the value for A is typically involved in various multiply operations. During encoding with properly prescribed limits, these operations can be greatly simplified. In this regard, it is observed that the coding process for the typical P/Q binary coding scheme may be summarized as follows: If an MPS is encoded-- C ← C + A x Q e A ← A(1- Q e ) If an LPS is encoded-- A ← A x Q e In these and the following formulas the sign "←" means that the left term (new value, e.g. A new , C new ) results from the right term (previous value, e.g. A previous ). By maintaining A within the limits 0.75 to 1.5, the value of A may be approximated as 1.0. It is then noted that the above computations simplify to: If an MPS is encoded-- C ← C + Q e A ← A - Q e If an LPS is encoded-- A ← Q e In the event that A < 0.75 after a decision event is encoded, there is a renormalization of A and C. By renormalizing C as well as A, the code point value remains in the same proportions as the interval. Hence, the renormalization allows finite precision arithmetic and does not adversely affect the coding process precision. In accordance with the present invention, the value of Q e is up-dated each time A and C are renormalized. For decoding the encoded data generated according to the P/Q scheme, the following operations are performed: if C > Q e an MPS is decoded and the following computations are made: C ← C - Q e A ← A - Q e If the above condition does not hold, an LPS is decoded and A ← Q e The simplified encoder (and decoder) described above are ideal for hardware implementation because the range subtraction (addition) and the code stream addition (subtraction) can be done in parallel. However, a software implementation employing the same conventions for defining and changing the code stream is not as efficient because two arithmetic operations are required on the most frequently taken path. Therefore, a more efficient software implementation of the encoder is realized by pointing the code stream, C, at the top of the current interval rather than the bottom. For software, the encoding process is as follows: if there is an MPS event-- A ← A - Q e if there is an LPS event-- C ← C - (A - Q e ) A ← Q e In either case, if AH<0.75 renormalize A and C; update Q e . A description of inverted coding is set forth in the aforementioned patent application relating to arithmetic encoding with selectively employed encoders and decoders. In examining the above conventions, it is noted that A and C are renormalized in each embodiment when A < 0.75, and Q e is correspondingly up-dated. The manner in which Q e is up-dated according to the invention is now described. B. Up-dating the Probability Estimator 1. Up-dating Q e with Each Augend Renormalization Fig. 1 illustrates the up-dating of an estimated probability value Q e ; as succeeding events are decoded and renormalizations occur. In Fig.1, the ordinate represents values of the augend A and the abscissa represents allowed values of Q e as included in a Q e table (discussed hereinbelow). Starting at the allowed Q e value of 0.421875, an LPS event is encoded resulting in an augend value of 0.421875. The LPS event, which drives the augend to a value less than 0.75, results in an LPS renormalization (or "LPS renorm") which results in an incrementing of the Q e value to 0.46875 and a renormalization of A to a value of 0.84375. It is noted that renormalizing A and C in the present embodiment involves a multiplication by two. This operation is not only simple --being performed with simply a register shift-- but also makes it easy to keep count of the number of renormalizations performed. A subsequent MPS event results in A taking on the value 0.375 according to the simplified expression: A ← A - Q e That is, A = (0.84375 - 0.46875) = 0.375 Because A is less than 0.75, an MPS renormalization (or "MPS renorm") takes place. Q e takes on the lower value of 0.421875 and A is renormalized to a value of 0.75. (A further renormalization is not required because the value of A is no longer less than 0.75.) On the next MPS event, A decreases to 0.328125 which is less than 0.75. A lower Q e value is chosen at 0.328125. The value of A is doubled to equal 0.65625 which is still less than 0.75. The value of A is doubled again so that A becomes 1.3125. A subsequent MPS event reduces the augend to 0.984375 which exceeds 0.75 so that no renormalization occurs. Another MPS event causes A to drop to 0.65625 which results in an MPS renorm. A lower value of Q e is chosen, namely 0.3046875, and the augend A is multiplied by two to become 1.3125. On the second MPS event thereafter, an MPS renorm is required. 2. The Q e Table(s) In accordance with the invention, Q e values such as those shown in FIG.1 are stored in table form. In Table 1, a plurality of allowed Q e values are shown in hexadecimal notation in the left column. Each Q e value in the table is preferably a 12-bit value and is defined to occupy two bytes. The Q e values are divided by 5461 (hexadecimal 1555) to convert to N-decimal fractional representation. A 5 bit index is sufficient to uniquely identify the Q e value. To move to an adjacent entry in the table, a shift of two bytes is required. In Table 1, the second column indicates how many bytes are to be shifted for each listed probability value following an LPS renorm. It is observed that, in some instances, an LPS renorm results in the probability value incrementing by one, two, or three index positions in the table. In examining Table 1, it is observed that entries therein correspond to the Q e values set forth in Fig. 1. That is, 0.46875 in decimal corresponds to the 0a80 hexadecimal value in Table 1. The three entries listed thereafter --namely 0a00, 0900, and 0700--correspond respectively to the 0.421875, 0.328125, and 0.3046875 values of Fig. 1. The negative of Q e is used where MPS is 1. An alternative to Table 1 is shown in Table 2. Table 2 shows qi0 values for allowed Q e values which are associated with LPS renormalization. The qi0 term in Table 2 is referred to as qilps(i0) indicating that the index contains information relating to the next Q e value (q0) for both MPS of 0 ,i.e., positive Q e and MPS of 1 ,i.e., negative Q e and the index (i0) therefor which apply when an LPS renorm occurs. In Table 2, both the next Q e value and its associated i0 value are found at the previous index. In Table 1, however, a next index is first determined and then the next Q e value is determined therefrom. Table 2 provides a simpler look-up procedure. Table 3 is similar to Table 2, except that it is intended for use with MPS renorms. In particular, in the event of an MPS renorm, Table 3 shows the next probability value q0 and next index i0 for each Q e value in the table. In Table 2, higher values are chosen whereas in Table 3 lower values are chosen. Note that the index changes in multiples of 4 for tables 2 and 3 because qi0 has both the new Q0 and I0 at an entry. It should be recognized that the tables only include Q e values in the range from 0 to 0.5. At 0.5, the binary event representing the LPS becomes the MPS and vice versa. The event which corresponds to Q e thus changes. For example, if a white pel event represents an LPS event, Q e values represent the probability estimated for the white pel event; however, when the Q e value reaches and exceeds 0.5, the black pel event now becomes the LPS event identified by Q e The Q e table may be viewed as symmetric about the exchange point where the definitions of the LPS and MPS change. The selection of allowed Q e values is determined based on a number of factors. First, certain values are recognized as "bad" values. In particular, those values which can result in "trapping" the Q e value are not permitted. Probability values that are at or near the values AMIN/2, AMIN/4,... AMIN 2 n --where n is some positive integer-- are considered "bad" values. At such values, a cycle of (1) LPS renormalization, (2) movement to a first Q e value, (3) MPS renorm after a single likely MPS, with a corresponding movement to a second (lower) Q e value, (4) another LPS and LPS renorm, and (5) a return to the first Q e value could trap the estimation process. Accordingly, the values of Q e are preferably selected to exceed AMIN 2 n by a prescribed value δ, so that the probability of an MPS renorm after an LPS renorm is not excessively high. One method of accomplishing this end is to space all smaller Q e values after renormalization far enough away from hexadecimal value '1000' to require a plurality of MPS events to invoke an MPS renorm following an LPS renorm. For Q e values near 0.5 this condition is relaxed. For very small Q e the interval between the renormalized Q e and AMIN must be large enough that the MPS renorm probability is of the same order of magnitude as the LPS probability. A second consideration in selecting table values involves coding inefficiency. In this regard, it is desirable that minimum coding inefficiency be achieved over the range of allowed Q e values. Referring to Fig. 2, a graph of coding inefficiency vs. the magnitude of the log₂ Q, for the Q e values included in Table 1. The circles represent experimental results and the solid line represents theoretical results for a single context coding embodiment (see section 3). Coding inefficiency is calculated from the difference between the number of renormalization shifts per symbol and the entropy. Preferably, but not necessarily, the most uniform curve --given table granularity and arithmetic approximations used in the coding-- is desired. Third, system responsiveness is a consideration; namely, how long it takes to reach the proper Q e value from a value far from the mark. In furtherance of this end, larger increments and decrements are selected between adjacent Q e values, provided that such large differentials do not adversely impact stationary results. Stationary results are generated based on data provided according to a fixed probability --for example, by a pseudorandom number generator producing outputs based on a fixed probability. Nonstationary results are based on actual data wherein the probability may fluctuate over time. Table 1 was determined in accordance with the above considerations and represents a compromise between simplicity, minimum storage requirements for each context (e.g., six bits which include one bit for the sense of the MPS symbol and five bits for the index to the Q e value), reasonable coding efficiency for fixed (i.e., stationary) statistics, and good performance on multiple context data obtained from different data compression models (for example, a facsimile compression model and a continuous tone image compression model). In the above description, a compromise between coding efficiency and rapid estimation of changing probabilities is noted. In furtherance of these two objectives, the present invention further suggests an alternative methodology for increasing the correction rate. Using the same number of bits for each table entry (e.g., six bits), any one of a plurality of next possible succeeding values may be chosen as the next probability value based on a renormalization correlation count. This multiple rate embodiment is described hereinbelow in section 4. 3. Single Context and Multiple Context Adaptation Referring to Fig. 3, a context table is shown. In particular, three contexts C0, C1, and C2 are listed. Each context corresponds to a different setting in which decisions are being made. For example, the differing contexts could represent different areas in a frame of optical data. One area of the frame may be predominately black, another may be predominately white, and a third area may be fairly evenly represented by each type of event. Accordingly, for each context, there is a respective MPS identifier; that is, an indicator as to whether the black (or YES) decision is the MPS or whether the white (or NO) decision is the MPS. In binary notation this is represented in the Fig. 3 table by the MPS column in which the 0 event represents the MPS event for the C0 and C2 contexts, while the 1 event represents the MPS event for the C1 context. The next column in the table is a Q e index table which indicates the Q e entry currently being pointed to for the respective context. In context C0, the 0th entry is being pointed to; in the C1 context, the 12th entry is being pointed to; and in the C2 context the 29th entry is being pointed to. The respective current Q e values are shown in the last column to be 0.5, 0.10, and 0.001, respectively. The MPS identifier and Q e index are preferably represented by 6 bits, the Q e index preferably being represented by 5 bits in this embodiment --it being recognized that the number of bits may vary. In accordance with one embodiment of the invention, a single augend value is stored and used regardless of which context is being considered. As decisions are entered in each context and as renormalizations are provided for each context, a common augend is processed. By way of example, a string of 0 and 1 bits are shown, each being associated with a corresponding context. The string 01100 represents bits in the C0-C1-C0-C0-C2 contexts, respectively. From the table of Fig. 3, it is observed that the bit sequence represents an MPS (for C0), an MPS (for C1), an LPS (for C0), an MPS (for C0), and an MPS (for C2). Let the initial value of A before the first bit is encoded be 1.0 for purposes of this example. In response to the bit string 01100, then, the following operations take place given a P/Q encoding scheme as described hereinabove: i. For the first bit, A ← A - Q e (C0) = 1.0 - 0.5 = 0.5; Because A is now less than 0.75, A is renormalized to 1.0 and the value Q e (C0); is decremented to 0.48. ii. The second bit represents an MPS in context C1, causing the value of the augend A to drop according to the expression A ← A - Q e (C1); which is equal to (1.0 - 0.1) = 0.90. Neither renormalization nor Q e ; up-dating is performed. iii. The third bit is an LPS in context C0, resulting in an LPS renorm. The augend value changes from 0.90 to Q e (C0), or 0.48. The value for A must be renormalized (doubled) to the value of 0.96 and the Q e value for the C0 context is incremented. For this example, it is assumed that the value Q e (C0); increments by one entry back to the 0th entry. As discussed hereinbelow, the invention also contemplates the Q e value being moved upward to a single value which is more than one entry away. Alternatively, the invention contemplates the possibility of moving the Q e value upward to a chosen one of several possible next Q e values depending on how far the Q e value appears to be from the actual probability. The latter methodology is discussed hereinbelow as a multiple rate embodiment. iv. At the fourth bit, there is an MPS for context C0. A is altered to (0.96 - 0.5) = 0.46 which requires an MPS renorm. The value for A is doubled to 0.92 and Q e (C0) drops to 0.48. v. The fifth bit corresponds to an MPS in context C2. The value of the augend A becomes (0.92 - Q e (C2)) = 0.92 - 0.001 = 0.919; which is greater than 0.75. No renormalization takes place. After the five bits, the table has the following entries. For context C0, MPS=0, the Q e (C0) index is 1, and the Q e (C0) value is 0.48. For context C1, all data remains unchanged. For context C2, all data remains unchanged. The current augend A for the next encoded decision event is 0.919 regardless of the context of the decision. Another multiple context embodiment is also within the scope of the invention. In particular, each of a plurality of contexts has a respective augend value which is up-dated and renormalized only for decisions in the context thereof. In environments where additional precision is desired for the estimator, an independent augend for each context increases the storage per context to include the augend bits. The multiple context embodiment, compared to a single context embodiment, permits a plurality of decision contexts to be processed together. 4. Single Rate and Multiple Rate A single rate estimator provides that, for a given Q e value, there is only one specified greater value which is to be chosen as the next probability for an LPS renorm and one specified lesser value to be chosen for an MPS renorm. An embodiment of a single rate estimator is set forth hereinbelow in section 5 as a finite state machine. In addition to the single rate estimator, a multiple rate estimator is also contemplated by the present invention. In particular, any one of a plurality of possible permitted next Q e values can be chosen after a renorm depending on renormalization correlation. Renormalization correlation indicates the stability (or instability) of the statistics of the data set for each context individually. This is done by remembering the last renormalization (either from an LPS or due to an MPS), and incrementing a four bit counter by one if the renormalization is the same and decrementing the counter by two if it is different. The counter is clamped to prevent it from going negative or exceeding 15. The amount of change in the estimate Q e is determined by the value of the counter, the change being larger as the counter value increases. The counter is also locked at the smallest allowed value of Q e . This counter, a flag bit whose state is determined by the previous renormalization for the context, and the variable increment/decrement structure provide the multi-rate estimation process. The renormalization correlation measure requires an additional five bits of storage for each context. It also uses a table of estimated Q e values with about twice the number of entries as the 6 bit context version. Thus, a total of twelve bits of storage per context is required for this version: six bits for the value of Q e one for for the MPS sense, one bit for the sense of the last renorm, and four bits for the correlation count. Table 4 lists the Q e values used for the multi-rate estimator. The 61 entries require at least a 6 bit index. The LPS decrement is listed in the second column in units of 2 bytes. 5. Finite State Machine Representation of the Q e Table Fig. 5 shows a finite state machine implementation of a single rate, single context estimator. The value k ex represents a state at which an event which MPS and LPS event definitions are exchanged. In Fig. 5, each state has one outgoing path for an MPS renorm and one outgoing path for an LPS renorm. For k max the MPS renorm results in an up-dating which returns to the same state. Each state may thought of as a table entry, representing a particular Q e value. Each entry is linked to two possible succeeding entries. Preferably, MPS renorms result in movement to the next state closer to k max . On an LPS renorm, it is noted that the state may change by one, two, or more state position on its path to a single possible next state. In Fig..6, a sample multiple rate finite state machine implementation is illustrated. For a given value of Q e e.g., 0.42, there are a plurality of states (k m )¹ and (k m )² which can follow state k m-1 . Also deriving from state k m-1 are two other possible states: (k m )³ and (k m )⁴. Each follows a unique path from state k m-1 each path being identified by two bits. One bit indicates whether the present renorm is an LPS or an MPS renorm and the other bit indicates whether the most recent previous renorm correlates to the current type of renorm. "00" indicates, for example, that the present renorm is an LPS renorm and that the renorm previous thereto was not an LPS. The "01" indicates that the current renorm is an LPS and that there is correlation. In the simplified sample finite state machine, the 00 path goes to the adjacent higher value, 0.43 in the sample. (The values for Q e have been selected to simplify the explanation and do not represent probability values taken from an actual table.) For the 01 path, however, the next value is two entries up --namely 0.44-- reflecting the earlier correlation. For the two MPS renorm states, the same Q e value results. However, if appropriate, the two MPS paths may result in different Q e values sometime thereafter. In the finite state machine, the renormalization count is integrated into the plurality of paths. C. Flowchart Implementations Referring to Fig. 7, the basic structure of the adaptor or probability adaptor system is shown in a specific image processing embodiment. An optical scanner 700 receives reflectance or photon count information from a item being scanned. The information in analog form is converted to digital data by an A/D converter 702 which directs the data in to an image buffer 704. The image buffer conveys data stored therein to a state generator (model) 706. The state generator 706 uses input data DATAIN to determine the context STATE and current symbol YN (yes/no). The sense of the most probable symbol (MPS) and the least probable symbol (LPS) probability Q e which are stored at that context are generated as outputs by the probability adaptor for use externally. If a decision results in renormalization and an up-dating of Q e , the output values from the probability adaptor 708 correspond to values stored prior to such renormalization and up-dating. Fig. 8 is a flowchart showing the general operation of the probability adaptor 708. The operation INITADAPT (Fig. 9 and Fig. 10) initializes the system and context storage. The model process is represented by the statement "get S,YN". The ADAPT block (FIG.13) uses the state S to immediately look up the MPS and Q values for that state and then adapts MPS and Q according to the YN value. The decision as to when to stop is provided by some external means. For purposes of explanation, the following definitions of terms used in the various flowchart operations discussed hereinbelow are provided. Q is defined as a fixed point fraction with 12 significant bits in the programs and flow charts. A is a 16 bit integer, but can be considered a binary fraction with the binary point positioned to provide 12 fractional bits and 4 integer bits. A can be treated either as a universal parameter (in flow chart names followed by the suffix -U) or as a function of context (suffix -C). In the latter case, for example, each context may keep an independent value of A, A0(S)). Q0(S) represents the LPS estimated probability for context STATE S. (It is noted that the context STATE relates to different backgrounds of decisions which may be processed at the same time, each having its own respective estimated Q value and its own definition of MPS and LPS events. This context STATE differs from the k x states discussed with regard to the finite state machine, wherein each state corresponded to a particular Q e value.) Q0 is positive when MPS is zero. When MPS is one, Q0 is the negative of the LPS estimated probability. I0(S) is an indicator of the current estimated LPS probability in the table. I0 can have two parts. The low order byte I0B is always the index of the current estimated LPS probability in the NEWQ0 table. An example of a NEWQ0 table can be created from the first halfword column in Table 1 for a 5 bit Q e The high order byte R0B is the current rate parameter for the multi-rate implementation (suffix -M). For the single rate implementation (suffix -S) R0B is always 0 which means that I0(S) is equal to I0B(S). For the multi-rate implementation the low order four bits of R0B contain the four bit counter measuring renormalization correlation. The next bit is a flag which is set to 1 when the renormalization is on the MPS path, and reset to 0 when the renormalization occurs on the LPS path. RMPS is the table used to up-date the rate for the multi-rate system after an MPS renormalization. The index to RMPS is 5 bits. The most significant bit is one if the previous renormalization for the context was an MPS renorm and zero if the previous renorm for the context was an LPS renorm. The low order 4 bits of the input contain the current correlation count. The output has the same structure, with the most significant bit being set to indicate that this renormalization is an MPS renormalization, and the low order 4 bits containing the new correlation count. The correlation count in the output is incremented by one relative to the input (to a maximum of 15) if the renormalization flag of the input is set, and decremented by 2 (to a minimum of zero) when the renormalization is not set. RLPS is the table used to up-date the multi-rate system after an LPS renormalization. The table structure is similar to RMPS, except that the correlation count is incremented by one (to a maximum of 15) if the input renormalization flag bit is zero, and decremented by 2 (to a minimum of zero) if the flag bit is one. IMPS is the table used to up-date the index IO after an MPS. The previous I0 is the index to this table and the output of the table is the new I0. The low order byte of I0 (I0B) is the index to the new Q e One possible table of allowed Q e values for this multi rate system is given in the first column of Table 4. The high order byte contains the new ROB rate byte. When R0B is zero, the MPS renormalization moves the Q e index by 2 to the next smaller entry. When R0B is not zero, extra change is added or subtracted from the Q e index. In the case of the MPS renorm, a single increment by two is always used, and therefore is combined with the extra increments to simplify the computations. INC is the table referenced by the rate to determine the total amount added to the I0B index into the NEWQ0 table. One possible table has entries of 2 2 2 4 4 4 6 6 8 8 10 12 12 12 12 12 2 2 2 4 4 4 6 6 8 8 10 12 12 12 12 12. The index values in IMPS are generated according to these rules, with appropriate clamping at the smallest Q e . ILPS is the table used to up-date the index I0 after an LPS. It has the same structure as IMPS, as the low order byte of I0 (I0B) is the index to the new Q e and the high order byte contains the new R0B rate byte. When R0B is zero, the LPS renormalization requires the index change listed in the second column of Table 4. When R0B is not zero, an extra change is made to the Q e index. XDEC is the table referenced by the rate to determine the extra amount decremented from the I0B index. One possible table has entries of 0 0 2 2 4 4 6 8 10 14 18 22 26 28 30 30 0 0 2 2 4 4 6 8 10 14 18 22 26 28 30 30. The index values in ILPS are generated according to these rules, with exchange of LPS and MPS sense when the index change would exceed the maximum Q e . AMIN determines when renormalization is needed. T is a temporary variable to save intermediate results. Referring now to Fig.9 and Fig.10, the operation INITADAPT is shown. INITADAPT initializes the probability adaptor. Fig.9 shows the initialization for the case when A is a universal parameter. After setting up the tables, the AMIN is also initialized to '1000', which represents 0.75. INITSTATE-U (Fig.11) block initializes the context storage. Then A is initialized to one and AMIN is initialized to '1000' which represents 0.75. In Fig. 10 the INITADAPT-C block sets up tables and then loops within the INITSTATE-C (Fig.12) block to initialize the context storage. The INITSTATE-C block differs from the INITSTATE-U block in that it also has to initialize A0(S) for each context. An example of initializing the context storage for each state is given in INITSTATE (Fig.11 and Fig.12). For speed in computation, the estimated LPS probability Q0(S) is stored for each state. Q0(S) is initialized to the first Q value in the NEWQ0 table. Since NEWQ0(0) is positive, MPS is assumed to be 0. The index of the LPS probability is also initialized to 0. This simultaneously sets both I0B(S) and R0B(S) to zero. The I0(S) could be set to fixed initial conditions for each state. Alternately, R0B might be set to the maximum rate so that adaptation would be rapid at first. For the context dependent case, A0(S) is initialized to X'1000'. ADAPT (Fig.13) shows the two paths taken according to whether YN is 1 or 0 during the probability adaptation. Note that MPS and Q0(S) are used externally before this adaptation occurs. ADAPTYN1-U (Fig. 14) adapts the probability for YN=1. If Q0(S) < 0, an MPS symbol has occurred. A is decreased by adding the negative Q0. For the universal case, a single A is used for all states. On the MPS path if A is less than AMIN, then Q0 will be decreased in UPDATEMPS1 (Fig.18, Fig.19, Fig.20 and Fig.21). The RENORMP-U (Fig.34) block renormalizes A. If Q0 was positive (zero is not allowed), A is set to Q0, and the Q0 is increased in the UPDATELPS0 block. Since Q0 is always less than AMIN, renormalization is required. ADAPTYN1-C (Fig.15) shows a similar adaptation process for YN=1 for the case of context dependent A0(S). However, instead of a single A, each state saves its own A0(S). The RENORMP-C (Fig.35) block renormalizes A0(S). ADAPTYN0-U (Fig.16) adapts the probability for YN=0. The MPS path is to be taken when Q0(S) is positive. A is decreased by Q0 before checking if A is less than AMIN. If so, Q0 will be decreased in UPDATEMPS0 (Fig.22, Fig.23, Fig.24 and Fig.25) and then RENORMP-U called for renormalization. On the LPS path, A must be set to the negative of Q0, since Q0 is negative for MPS=1. Q0 is increased in UPDATELPS1 (Fig.26, Fig.27, Fig.28 and Fig.29) and then renormalization is necessary. The context dependent case for ADAPTYN0-C (Fig. 17) follows the same process except that the context dependent A0(S) is used instead of A. The logic of the probability updating processes are illustrated for both the single rate (-SL) and multi-rate (-ML) versions. The same result is achieved in the preferred embodiment with a finite state machine implementation for the single rate (-SF) and multi-rate (-MF) versions. The flow charts for the logical versions have table limits explicitly given by name even though for a given Q e . table the values can be set to constants. (Note that the Q e . entries are each two bytes). The following table defines these table limits for the 5 and 6 bit Q e tables. The A version for the 5 bit Q e . was used to generate the finite state machine. The B version has the MPS=1 table starting at hex 80 so that the most significant bit in the byte will be set. This simplifies construction of the tables for the multi-rate version (6 bit Q e . and 12 bit total context). For the 12 bit context, the B version was used. For an MPS = 0, the value table entries are from IMIN0 to IMAX0 inclusive. The MPS = 1 table will be from IMIN1 to IMAX1 inclusive. The single rate version in its logical form for the MPS path for YN=1 is shown in UPDATEMPS1-SL (Fig. 18). The next table entry is calculated by adding 2 (2 byte table entries) to I0B(S) and is saved in the temporary variable T. If T is not less than IMAX1, then it is set to IMAX1. T is stored at I0B(S) and the new Q0 looked up in the NEWQ0 table. The multi-rate process UPDATEMPS1-ML (Fig.19) is slightly more complex. The increment added to the old I0B is a function of the rate R0B. If the result is less than IMAX1, the rate is updated through the RMPS table. Otherwise, the new I0B is reset to IMAX1 and the rate is not changed. After storing the new I0B, a new Q0 is looked up and saved. The single rate finite state machine implementation of the probability update on the MPS path for YN=1 UPDATEMPS1-SF (Fig.20) finds the new I0B in the IMPS table at the old I0B location. Then a new Q0 is found at the new I0B location in the NEWQ0 table. Instead of I0B, I0 could have been used because R0B is always 0. For the multi-rate finite state machine case UPDATEMPS1-MF (Fig.21) the entire I0(S) must be used to find the new I0(S) in the IMPS table. Then the new Q0 can be found in the NEWQ0 table using just the low order byte I0B. The logical versions of the MPS path update for YN=0, UPDATEMPS0-SL (Fig.22) and UPDATEMPS0-ML (Fig.23), are similar to the YN=1 path except that IMAX0 is used instead of IMAX1 and a logical comparison is made instead of an arithmetic signed comparison. The finite state machine versions for YN=0, UPDATEMPS0-SF (Fig.24) and UPDATEMPS0-MF (Fig. 25), are identical to the YN=1 cases, since the MPS distinction is contained in I0B. Updating the estimated probability on the LPS path for the single rate logical version (UPDATELPS1-SL Fig.26) starts with looking up the new indicator in the ILPS table. If the result is logically less than IMIN1 (i.e. the result is not in the table so an MPS exchange is needed), a new index is calculated by subtracting from IMIN1 minus 2 the calculated value and then adding it to IMIN0. The index is stored in I0B and a new Q0 is looked up in the NEWQ0 table. The multi-rate logical LPS update for YN=1 (UPDATELPS1-ML Fig.27) also starts by looking up the new index in the ILPS table. Then an extra decrement which is a function of the current rate R0B is subtracted. The new rate can be found in the RLPS table. If the calculated index temporarily in T is logically less that IMIN1, a new index which accounts for the MPS exchange is found and the bit which flags the sense of the renormalization is flipped to indicate an MPS last. The calculated index is stored in I0B and the new Q0 looked up in the NEWQ0 table. The finite state machine versions of the single and multi-rate versions (UPDATELPS1-SF Fig.28 and UPDATELPS-MF Fig.29) look up the new index either as a byte or two byte quantity in the ILPS table. Then the new Q0 is found in the NEWQ0 table. When YN=0, the updating LPS path process UPDATELPS0-SL (Fig.30) looks up the new index in the ILPS table. If the new index is less than IMIN0 (i.e 0), an MPS exchange is needed. The new value with MPS exchange is calculated by subtracting from IMIN0-2 the temporary index and then adding it to IMIN1. The new index is calculated and stored in I0B. Finally a new Q0 is looked up in the NEWQ0 table. The multi-rate LPS update for YN=0 UPDATELPS0-ML (Fig.31) decreases the new index obtained from the ILPS table by the extra decrement which is a function of the rate. The new rate is found in the RLPS table. If the calculated index is less than IMIN0, an MPS exchange is needed. The new index is calculated and the flag bit is forced to an MPS last. The index is stored and a new Q0 looked up. The finite state machine versions for the LPS path when YN=0 (UPDATELPS0-SF Fig.32 and UPDATELPS0-MF Fig.33) are exactly the same as the versions for YN=1. RENORMP-U (Fig.34) renormalizes the universal A value one bit at a time. A is shifted until it is no longer less than AMIN. The RENORMP-C (Fig.35) is used when A is saved as a function of context. A0 is shifted until greater than AMIN. The above flowcharts may be prepared in various software languages including the Program Development System Language which uses the forward Polish notation and may be run on any of various computers such as an IBM 370 system. D. Test Sequence for a small data set An example of use of the present probability adaptor in an arithmetic coding environment is now depicted. The test file was generated using a random number generator such that the probability of 0's in the binary sequence was 0.1875. The actual number of zeros in the file was 48, as expected. The initial Q value was set to hex '0A80' and the initial MPS was set to 0. Then a multi-rate 12 bit context with only one state was used. In the following encoder tests, the "codebytes" are listed as they are output. Two bytes in that column list both a changed preceding byte along with the new byte. Test data (in hexadecimal form): EBB7FAFEBFEFD6C7F7FFFDFE7FFBDFF3FDFFFF97F6F5F7FEB97BDF-76EDD7E7FF For this file the coded bit count is 208, including the overhead to flush the final data. The actual compressed data stream is (in hexadecimal form): 459BB80493E801627BB33497424C3D5D2B60D29D0ED7561B1C00 For this multi-rate embodiment having a twelve-bit context, the following Tables 4 and 5 demonstrate the encoding and decoding using probability adaptation. It is noted that the high order byte of I0 represent R0B and the low order byte represent I0B. "ec" is the event count. "I0" and "Q0", which together form qi0 referred to hereinabove, represent an index containing renormalization correlation information. "Y/N" represents the input data in binary form. The test data starts with EB... which, in binary, is 1110 1011 --the first eight Y/N decision event inputs. "A" is the current augend value. "x" is the value of the most recent encoded portion of an arithmetic coded code stream. The "codebytes" indicate the actual compressed data stream in hexadecimal notation. Table 5 shows encoding and Table 6 below shows the decoding process in which the Q/P ordering is inverted. Methodology relating to the encoding and decoding is set forth in the above-mentioned co-pending application relating to arithmetic coding selectively employing disparate encoders and decoders. II. Word/Speech Recognition Embodiment and Other Embodiments The present invention is applicable to any environment in which a estimated probability Q e is to be adapted based on a history of decision events. One example of such a further embodiment relates to selecting an appropriate word path from a plurality of word paths arranged in a tree. Such an arrangement is shown in Fig. 36. In Fig. 36, the word "THE" may be followed by "DOG" or DUCK" at junction J1. For convenience, the decision at junction J1 is a simple binary decision between two possible events. Initially there is a relative probability for each event --"DOG" and "DUCK"-- such that the probability of one of the two events is less than the probability of the other event and thus estimated by Q e . As the junction J1 is reached a number of times, the respective probabilities of the two events may vary. For example, the Q e value may be 0.10 where Q e indicates the probability of the word "DUCK" following the word "THE", the probability of the word "DOG" thereby being 0.90. If, for the next one hundred times the junction J1 is traversed, "DUCK" occurs once and "DOG" occurs ninety-nine times, the prior estimate of Q e = 0.10; should be adjusted. The adjustment of Q e is made in accordance with the invention. First, an augend A is defined at an initial value, e.q. one. Each time the junction J1 is traversed, a determination is made whether the MPS event (in this instance, the word "DOG") or the LPS event (in this instance, the word "DUCK") has occurred. If there is an LPS event, the initial value of the augend A is set equal to the initial value set for the estimated probability multiplied by the previous value for A, or A x Q e . When A is held near a value of one, A is set equal to simply Q e . If the value of A falls below a predetermined threshold AMIN, it is increased by one or more prescribed amounts until the increased, or renormalized, A value is at least equal to the value of AMIN. Preferably, AMIN is greater than 0.5 so that each LPS event results in a renormalization of the A value. As noted hereinabove, the increase is preferably by powers of two so that the value of A is successively doubled until the doubled result is not less than AMIN. For the LPS event, the value of Q e is also changed to a higher value. The value may be incremented by a known amount or may, as described hereinabove for the arithmetic coding embodiment, be moved to a higher value listed in a Q e table. For an MPS event, the augend value is reduced according to the expression: A ← A - A x Q e , which simplifies to A ← A - Q e , when A is maintained near a value of one. If A is greater than or equal to AMIN, the value for Q e remains unchanged. In the event that A drops below AMIN, the value of A is increased (e.g., doubled) until it exceeds AMIN and the value of Q e is reduced. Implicit in this strategy is the notion that if an LPS occurs, the Q e value is too low, whereas if enough MPS events occur to cause an MPS augend renormalization (before there is an LPS event), the Q e value is too high. By way of example, suppose that A is set at one, that AMIN is 0.75, that Q e which estimates the likelihood of the word "DUCK" occurring at junction J1 is valued at 0.35, and that other estimated probability values in a table (not shown) include 0.375 as the next higher adjacent value and 0.34 as the next lower adjacent value. If junction J1 is traversed and the recognized word is determined to be "DUCK", the value of A drops to 0.35, which is doubled to 0.70 and re-doubled to 1.4 in order to exceed AMIN. And the value of Q e increments to 0.375. If in the above example, an MPS event (the word "DOG") was recognized, the value of A would have been reduced to .eq (1.0 - 0.35) = 0.65; which is less than AMIN. A would be doubled to a value of 1.3 which exceeds AMIN. And Q e would be decremented in response to the MPS augend renormalization. Junction J1 may be viewed as one context. Similarly junction J2 may be viewed as a second context. Additional junctions would similarly represent respective contexts. As in the arithmetic coding environment, each context may have its own augend value or, alternatively, a common running augend may be applied to all of the contexts. In the latter instance, the augend resulting after junction J1 follows the "DOG" path would then be applied to junction J2. The augend resulting from the decision made at junction J2 would then be applied to the decision to be made at junction J3 or J4 as appropriate. It is thus noted that the teachings of the present invention are applicable to a wide variety of applications --namely wherever a probability estimator is to be adapted based on a history of earlier decisions which affect the probability. It is further observed that the binary decisions discussed hereinabove may involve decisions in which more than two outcomes may result for a given decision, such multiple decisions being re-formulated as a set of binary decisions. The preferred embodiment has been described in terms of renormalization by doubling of A when A is less than a prescribed limit AMIN. Other renormalization conventions may be used, such as setting A to a fixed known value when A is less than AMIN.

Claims: Method of arithmetic coding, whereby portions C of the code are calculated step by step as code points C new ← C previous + A previous * Q e on a number line, wherein C new is the code point of the new step, Cprevious the code point of the previous step and Aprevious the previous step value of the augend A, an interval on the number line, which is reduced with each coding step and wherein Q e is the estimated probability which is adapted in response to at least two decision event inputs (e.g. less probable symbol LPS or more probable symbol MPS) comprising the steps of: reducing the next step augend value A new in dependence of the previous augend value A previous as A new ← A previous * (1 - Q e ) if the decision event input (e.g. MPS) is different from the estimated probability Q e ; or reducing the next step augend value A new in dependence of the previous augend value A previous as A new ← A previous * Q e , if the decision event input (e.g. LPS) is equal to the estimated probability Q e ; comparing the reduced augend values A to a prescribed minimum value AMIN and renormalizing, preferably doubling, the augend value A to a value A new > AMIN whenever A is less than AMIN; updating the estimated probability value Q e from a number of preselected Q e values each time A is renormalized; repeating the above-cited steps. The method of claim 1, especially for hardware binary coding where AMIN is 0.75 and the augend A is maintained between the limits 0.75 to 1.5 characterized by: calculating C new ← C previous + Q e and reducing the next step augend value A new in dependence of the previous augend value A previous as A new ← A previous - Q e if Q e is the most probable symbol MPS; or reducing the next step value A new to Q e , if Q e is the less probable symbol LPS; and renormalizing the code point C and the augend A and changing the Q e value whenever A is less than 0.75. The method of claim 1, especially for software binary coding, where AMIN is 0.75 and the augend A is maintained between the limits 0.75 to 1.5 characterized by: reducing the next step augend value A new in dependence of the former augend value A previous A new ← A previous - Q e if Q e is the most probable symbol MPS; or calculating C new ← C previous - (A previous - Q e ) and reducing the next step value Anew to Q e , if Q e is the less probable symbol LPS; and renormalizing the code point C and augend A and changing the Q e value whenever A is less than 0.75. The method of one of the preceding Claims comprising the further step of: storing a table of selectable Q e values in a memory; wherein the current value for Q e at any given time is a value from the table; and wherein said up-dating step includes selecting a prescribed table value which becomes the current Q e value. The method of Claim 4 wherein the Q e value corresponds to a less probable binary decision event and wherein the Q e value up-dating step includes the steps of: in response to a less probable decision event being entered as the next input and the changed value of A being less than AMIN, choosing a larger-in-value Q e value from the table; and in response to a more probable decision event being entered as the next input and the changed value of A being less than AMIN, choosing a lower-in-value Q e value from the table. The method of Claim 5 wherein said table storing step includes the steps of: assigning Q e values for the table to converge (i) the actual probability of the less probable event and (ii) the estimated value Q e . The method of Claim 5 or 6, wherein said table storing step includes the steps of: assigning Q e values for the table in which each value after renormalization to a value greater than AMIN is at least a prescribed value .eq delta; greater than AMIN. The method of Claim 7 comprising the further step of: for each entry in the table, specifying which Q e values can be chosen as succeeding values. The method of one of the Claims 1-3 comprising the further step of: defining a plurality of contexts, each having a corresponding current Q e value in the stored table; wherein said up-dating step includes the step of: for each decision event resulting in a renormalization in a corresponding context, up-dating the Q e value for the corresponding context. The method of Claim 9 wherein the value of A at a given time is common to all contexts at said given time. The method of Claim 9 wherein each context has a respective A value assigned thereto. The method of Claim 8 wherein said specifying step includes the steps of: for each of at least some Q e values in the table, identifying a plurality of selectable succeeding Q e values one of which becomes the currente Q e value in response to a selected one of the two possible binary decision events being entered as input. The method of Claim 12 wherein the Q e up-dating step includes the step of: adjusting the Q e value in correspondence with a renormalization correlation that represents the repetitive occurrence of LPS renormalization events and the repetitive occurrence of MPS renormalization events. The method of Claim 13 wherein the Q e adjusting step includes the steps of: indexing a counter in a first direction if an LPS renormalization follows an LPS renormalization or if an MPS renormalization follows an MPS renormalization; and indexing the counter in the opposite direction in the event that an LPS or an MPS renormalization follows an MPS or an LPS renormalization, respectively. The method of Claim 14 wherein the indexing in said other direction is at twice the rate as the indexing in said first direction. The method of Claim 13 comprising the further step of: representing the Q e table as a finite state machine in which each of at least some Q e Q sub table entries has a plurality of states corresponding thereto, each state in the plurality indicating and being selected according to a corresponding renormalization correlation history. The method of Claim 8 wherein said specifying step includes the steps of: for each of at least some of the Q e values in the table, identifying a single succeeding Q e value which is selected as the current Q e value in response to renormalization after a first of the two possible binary decision events being entered as input. The method of Claim 8 wherein said specifying step further includes the steps of: for each Q e value in the table, identifying a first succeeding Q e value which is selected as the current Q e value if a first of the two possible binary events is entered as input; and for each Q e value in the table, identifying a second succeeding Q e value which is selected as the current Q e value if the other possible binary event is entered as input. The method of Claim 5 wherein the current augend value A is changed in value to equal (a) Q e if the less probable event is entered as input and (b) Q e if the more probable event is entered as input, where Q e is the most recent current value thereof, and wherein the Q e value up-dating step includes the steps of: in response to a less probable decision event input, choosing a larger-in-value Q e value from the table; and in response to a more probable decision event input which results in the changed value of A being less than AMIN, choosing a lower-in-value Q e value from the table. Method according to one of the preceding claims, whereby the step of comparing the reduced augend values A to a prescribed minimum value AMIN is modified such that an augend A is renormalized in the event of (a) the entering of a less probable binary event (LPS) input which reduces A below a prescribed minimum AMIN1, or (b) the entering of a more probable binary event (MPS) input which reduces A below a prescribed minimum value AMIN2. An arithmetic coding apparatus of adapting the probability of one of at least two possible binary events, using one of the methods of claims 1 to 20, whereby a current interval along a probability number line is divided into (a) a lesser-included first interval which becomes the current interval if a first type of decision event is entered as the next input, and (b) a lesser-included second interval which becomes the current interval if a second type of decision event is entered as the next input, the length of the first interval corresponding to a first estimated probability of the first type of event being entered as the next input and the length of the second interval corresponding to a probability associated with the second type of decision event being entered as the next input; and whereby the value of the current interval A is stored in a memory and is renormalized to increase the value thereof if A is less than a prescribed minimum value AMIN; further comprising: table means (Q e table) for storing selectable values Q e for the probability of said first binary decision event; pointer means (Q e index table) for identifying a current probability value in said table means (Q e table); and up-dating means which include means for moving said pointer means (Q e index table) to a higher-in-value entry in said table means (Q e table) in response to a renormalisation after one of the two possible binary events and to a lower-in-value entry in response to a renormalisation after the other of the two possible binary events. The apparatus of Claim 21 wherein said table means comprises: a finite state machine wherein the respective preceding entries and succeeding entries for each table entry are specified. The apparatus of Claim 21 wherein binary decisions in differing contexts are processed together, the apparatus further comprising: a plurality of pointers including said first pointer means, each pointer identifying a respective value in said table means for each context; and means for recognizing the context in which a binary decision event is made; wherein said pointer moving means includes means for re-positioning the pointer corresponding to the recognized context. The apparatus of Claim 22 further comprising: means for varying the rate of pointer movement according to a measure of renormalization correlation. The apparatus of Claim 22 wherein said table means comprises: a first stored table including a list of probability value entries and for each entry therein, a corresponding index which identifies a higher succeeding probability value and the corresponding index thereof; and a second stored table including a list of probability value entries and, for each entry therein, a corresponding index which identifies a lower succeeding probability value and the corresponding index thereof; the apparatus further comprising: means for up-dating the probability value to the identified higher value entry in said first table in response to a renormalization following a first type of decision event and for up-dating the probability value to the identified lower value entry in said second table in response to a renormalization following the second type of decision event.

Inventors: MITCHELL JOAN L, PENNEBAKER WILLIAM B, MITCHELL, JOAN L., PENNEBAKER, WILLIAM B.
Applicants: IBM, INTERNATIONAL BUSINESS MACHINES CORPORATION
Application year: 1987
Main classification: H03M7
IPC codes: H03M7