minisfc.util package
Submodules
minisfc.util.dataAnalysis module
@File : dataAnalysis.py @Time : 2024/06/20 21:03:17 @Author : Wang Xi @Version : 0.0 @Contact : wangxi_chn@foxmail.com @License : (C)Copyright 2023-2024, Wang Xi @Desc : None
minisfc.util.dataGen module
- class minisfc.util.dataGen.NumberGen
基类:
object- static getMatrix(size: int, **kwargs)
- static getVector(size: int, **kwargs) ndarray
Generate data with the given distribution and data type.
- 参数:
size (int) -- The size of the data.
**kwargs -- Keyword arguments to pass to the distribution generator.
- 返回:
The generated data.
- 返回类型:
ndarray
- class minisfc.util.dataGen.TopoGen
基类:
object- static cut_to_stp(adj_matrix: ndarray, source_node: int = 1)
- static get(size: int, **kwargs)
Generates topological adjacency matrix of specified size and shape
- 参数:
size (int) -- the size of topo
**kwargs (dict) -- {'type':'path/star/waxman'} if {'type':'waxman'} can further {'wm_alpha':value, 'wm_beta':value}
- 返回:
adjacency matrix of the topo (NDArray)
minisfc.util.jsonRead module
@File : jsonRead.py @Time : 2024/06/26 09:26:28 @Author : Wang Xi @Version : 0.0 @Contact : wangxi_chn@foxmail.com @License : (C)Copyright 2023-2024, Wang Xi @Desc : None