org.la4j.matrix.functor

## Interface MatrixAccumulator

• `public interface MatrixAccumulator`
A matrix accumulator that accumulates elements across matrix.
• ### Method Summary

Methods
Modifier and Type Method and Description
`double` `accumulate()`
Return the accumulated value and resets this accumulator.
`void` ```update(int i, int j, double value)```
Updates a value that was accumulated so far with new matrix element.
• ### Method Detail

• #### update

```void update(int i,
int j,
double value)```
Updates a value that was accumulated so far with new matrix element.
Parameters:
`i` - the row index
`j` - the column index
`value` - the element's value
• #### accumulate

`double accumulate()`
Return the accumulated value and resets this accumulator.
Returns:
an accumulated value
{"ft_lang_label":"__label__en","ft_lang_prob":0.5822871,"math_prob":0.8162768,"size":435,"snap":"2019-13-2019-22","text_gpt3_token_len":100,"char_repetition_ratio":0.1786543,"word_repetition_ratio":0.06153846,"special_character_ratio":0.22758621,"punctuation_ratio":0.112676054,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9848105,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-03-25T07:27:53Z\",\"WARC-Record-ID\":\"<urn:uuid:4e10e927-4938-49be-91f4-e5e861a72c8a>\",\"Content-Length\":\"8519\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:b6b96e33-fcbf-4dd5-b7fe-d63df66efe43>\",\"WARC-Concurrent-To\":\"<urn:uuid:da7888b1-9bfc-451e-a6e1-851c1a975d7f>\",\"WARC-IP-Address\":\"192.30.252.153\",\"WARC-Target-URI\":\"http://la4j.org/apidocs/org/la4j/matrix/functor/MatrixAccumulator.html\",\"WARC-Payload-Digest\":\"sha1:R2HECA2QMJQHHF76KHT4VD4MXPPLHXS2\",\"WARC-Block-Digest\":\"sha1:OIIJXLGXEA47DMZSJLYHINHBHYF6MCO3\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-13/CC-MAIN-2019-13_segments_1552912203842.71_warc_CC-MAIN-20190325072024-20190325094024-00076.warc.gz\"}"}