xgi.stats.DiNodeStat#
- class DiNodeStat(network, view, func, args=None, kwargs=None)[source]#
Bases:
IDStatAn arbitrary node-quantity mapping.
NodeStat objects represent a mapping that assigns a value to each node in a network. For more details, see the tutorial.
Attributes
nameName of this stat.
Methods
asdictOutput the stat as a dict.
aslistOutput the stat as a list.
asnumpyOutput the stat as a numpy array.
aspandasOutput the stat as a pandas series.
ashistReturn the distribution of a numpy array.
maxThe maximum value of this stat.
meanThe arithmetic mean of this stat.
medianThe median of this stat.
minThe minimum value of this stat.
modeThe mode of this stat.
stdThe standard deviation of this stat.
varThe variance of this stat.
momentThe statistical moments of this stat.
argminThe ID corresponding to the minimum of the stat
argmaxThe ID corresponding to the maximum of the stat
argsortGet the list of IDs sorted by stat value.