- Machine Learning with Spark(Second Edition)
- Rajdeep Dua Manpreet Singh Ghotra Nick Pentreath
- 98字
- 2021-07-09 21:07:51
Functional composition
For functions f: A -> B and g: B -> C, the functional composition of function f and function g is the function (g o f): A -> C, defined by (g o f)(x) = g(f(x)). For example, if f : {1,2,3} -> {A,B,C,D} and g : {A,B,C,D} -> {4,5}, the composition of g(y)=y2 and f(x)=x+1 is (g o f)(x)=(x+1)2.
Function composition is applying a function to the results of another function. So, in (g o f)(x) = g(f(x)), first apply f(), and then g(). Some functions can be decomposed into two (or more) simpler functions.
推薦閱讀
- 大數(shù)據(jù)技術(shù)基礎(chǔ)
- Windows 8應(yīng)用開發(fā)實(shí)戰(zhàn)
- 計(jì)算機(jī)圖形圖像處理:Photoshop CS3
- 現(xiàn)代機(jī)械運(yùn)動(dòng)控制技術(shù)
- Data Wrangling with Python
- VB語言程序設(shè)計(jì)
- 項(xiàng)目管理成功利器Project 2007全程解析
- Containers in OpenStack
- 人工智能:語言智能處理
- 工業(yè)機(jī)器人力覺視覺控制高級(jí)應(yīng)用
- 三菱FX/Q系列PLC工程實(shí)例詳解
- Web璀璨:Silverlight應(yīng)用技術(shù)完全指南
- 大數(shù)據(jù)導(dǎo)論
- 計(jì)算智能算法及其生產(chǎn)調(diào)度應(yīng)用
- 案例解說Delphi典型控制應(yīng)用