class pysal.explore.spaghetti.SimulatedPointPattern[source]

Struct style class to mirror the Point Pattern Class. If the PointPattern class has methods, it might make sense to make this a child of that class. This class is not intended to be used by the external user.

npoints : int

The number of points.

obs_to_edge : dict

Keys are edge ids (tuple). Values are snapped point information (dict). Withing the snapped point information (dict) keys are observation id (int), and values are snapped coordinates.

obs_to_node : list

list of incident network nodes to snapped observation points converted from default_dict. Originally in the form of paired left/right nearest network nodes - {netnode1: obs_id1, netnode2: obs_id1, netnode1: obs_id2… netnode1: obs_idn}, then simplified to a list in the form - [netnode1, netnode2, netnode1, netnode2, …].

dist_to_node : dict

Keys are observations ids (int). Values are distance lookup (dict). Within distance lookup (dict) keys are the two incident nodes of the edge and values are distance to each of those edges.

snapped_coordinates : dict

Keys are the point ids (int). Values are the snapped x,y coordinates (tuple).


Initialize self. See help(type(self)) for accurate signature.


__init__() Initialize self.