- 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.
推薦閱讀
- Mastercam 2017數控加工自動編程經典實例(第4版)
- 樂高機器人EV3設計指南:創造者的搭建邏輯
- 模型制作
- Hands-On Machine Learning with TensorFlow.js
- Moodle Course Design Best Practices
- Implementing AWS:Design,Build,and Manage your Infrastructure
- 空間站多臂機器人運動控制研究
- 筆記本電腦維修90個精選實例
- 單片機C語言程序設計完全自學手冊
- 從零開始學SQL Server
- 手把手教你學Flash CS3
- MongoDB 4 Quick Start Guide
- Hadoop Beginner's Guide
- DynamoDB Applied Design Patterns
- Access 2007數據庫入門與實例應用金典