verse.stars.starset.StarSet
- class verse.stars.starset.StarSet
Bases:
objecta one dimensional star set
Methods
produces a new starset with the new center and basis but same prediate
from_polytope
intersection_halfspace
intersection_poly
contains_point
satisfies
is_empty
- __init__(center, basis, C, g)
- Parameters:
- centernp array of numbers
center of the starset.
- basisnparray of nparray of numbers
basis of the starset
- predicate: boolean function
function that gives the predicate
- get_verts(dim1=None, dim2=None)
get the vertices of the stateset
- maximize(opt_direction)
return the point that maximizes the direction
- superposition()
produces a new starset with the new center and basis but same prediate
- Parameters:
- new_centernumber
center of the starset.
- new_basisnumber
basis of the starset