Main Content
reduce
Class: matlab.compiler.mlspark.RDD
Namespace: matlab.compiler.mlspark
Reduce elements of an RDD using the specified commutative and associative function
Syntax
result =
reduce(obj,func)
Description
reduces
the elements of result
=
reduce(obj
,func
)obj
using the specified commutative
and associative function func
.
Input Arguments
Output Arguments
Examples
Version History
Introduced in R2016b
See Also
fold
| map
| reduceByKey
| reduceByKeyLocally
| collect
| parallelize