pyhrf.boldsynth.field module¶
-
pyhrf.boldsynth.field.count_homo_cliques(graph, labels, weights=None)¶
-
pyhrf.boldsynth.field.genPepperSaltField(size, nbLabels, initProps=None)¶
-
pyhrf.boldsynth.field.genPotts(graph, beta, nbLabels=2, labelsIni=None, method='SW', weights=None)¶ Simulate a realisation of a Potts Field with spatial correlation amount ‘beta’. ‘graph’ is list of lists, ie a neighbors for each node index. ‘nbLabels’ is the number of labels ‘method’ can be either ‘SW’ (swensdsen-wang) or ‘gibbs’
-
pyhrf.boldsynth.field.genPottsMap(mask, beta, nbLabels, method='SW')¶
-
pyhrf.boldsynth.field.potts_generator(**args)¶
-
class
pyhrf.boldsynth.field.random_field_generator(size, nbClasses)¶