Enhanced Statistical and Graph Algorithm Implementations #151
+361
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
提供了高级的统计函数和全新的图论相关算法套件。
Introduces advanced statistical functions and a comprehensive suite of graph algorithms
Statistical Functions
kthCentralMoment: 实现了计算给定数据集的 k 阶中心矩的功能。kthCentralMoment:Implements the calculation of the kth central moment for a given dataset.kthRawMoment: 提供了计算 k 阶原点矩的功能kthRawMoment: Provides the functionality to compute the kth raw moment.Graph Algorithms:
pagerank: 实现了 PageRank 算法,用于计算图中节点的重要性。
pagerank: Implements the PageRank algorithm to calculate the importance of nodes in a graph.
maxFlow: 利用 Edmonds-Karp 算法计算流网络中的最大流。
maxFlow: Utilizes the Edmonds-Karp algorithm to compute the maximum flow in a flow network.
communityDetection: 应用了 Louvain 算法进行图的社区检测。
communityDetection: Applies the Louvain algorithm for community detection in graphs.
此外,还引入了 Graph 类,实现了以下图算法:
Additionally, the Graph class has been introduced, implementing the following graph algorithms:
Dijkstra: 实现了 Dijkstra 算法,用于寻找图中的单源最短路径。
Dijkstra: Implements Dijkstra's algorithm for finding single-source shortest paths in graphs.
PrimMST: 应用了 Prim 算法来构建图的最小生成树。
PrimMST: Applies Prim's algorithm to construct the Minimum Spanning Tree (MST) of a graph.
DFS: 执行图的深度优先搜索遍历。
DFS: Performs depth-first search traversal of the graph.
小组成员及分工
小组名称:ZWZ
成员1:ZSJ: 负责实现统计函数,包括 kthCentralMoment 和 kthRawMoment。
成员2:WZR: 创建了 Graph 类,实现了 Dijkstra、Prim 和 DFS 算法。
成员3:ZR: 添加并实现了 PageRank、最大流和社区检测算法。