cortex.dataset.Vertex.random

classmethod Vertex.random(subject: str, random_type: Literal['low_frequency', 'uniform'] = 'low_frequency', smooth_factor: float = 40, **kwargs) → Self

Create a random-valued VertexData for the given subject. Random values are from gaussian distribution with mean 0, s.d. 1. Often useful for testing purposes.

Parameters:
subjectstr

Subject identifier. Must exist in the pycortex database.

random_typestr, optional

type of random data to use. Default: low_frequency. One of (‘low_frequency’, ‘uniform’) ‘low_frequency’ yields blobby, brain-like data ‘uniform’ yields uniform random noise.

smooth_factorfloat, optional

Only used when random_type is ‘low_frequency’. Amount of smoothing to apply to the underlying random data; larger values smooth more. Passed as factor to polyutils.Surface.smooth.

**kwargs

Other keyword arguments are passed to the init function for this class.

Returns:
VertexData subclass

A VertexData subclass object with random data.