class_docstr: Computes 2D array representation of a circle
  where the circle minimally bounds the 2D data points
  
  data points with [minimal, sparse, or dense] packing=[~0.2, ~1.0, or ~5.0]
  setting packing = None will constrain all points to the circle's radius
class_docstr_tok: ["Computes","2D","array","representation","of","a","circle","where","the","circle","minimally","bounds","the","2D","data","points","data","points","with","[","minimal",",","sparse",",","or","dense","]","packing=","[","~0.2",",","~1.0",",","or","~5.0","]","setting","packing","=","None","will","constrain","all","points","to","the","circle","'s","radius"]
docstr: generate a circle instance from a sequence of coefficients
  
  Args:
      coeffs (list[float]): (x, y, and radius) defining a circle
  
  Returns:
      a function returning a 2D array of points contained within the circle
      
docstr_tok: ["generate","a","circle","instance","from","a","sequence","of","coefficients","Args",":","coeffs","(","list","[","float","]",")",":","(","x",",","y",",","and","radius",")","defining","a","circle","Returns",":","a","function","returning","a","2D","array","of","points","contained","within","the","circle"]
code: def ForwardFactory(self, coeffs):
      """generate a circle instance from a sequence of coefficients
  
      Args:
          coeffs (list[float]): (x, y, and radius) defining a circle
  
      Returns:
          a function returning a 2D array of points contained within the circle
      """
      x, y, r = coeffs
  
      def forward_circle(npts=None):
          """generate a 2D array of points within the defined circle
  
      Args:
          npts (int, default=None): number of points to generate
  
      Returns:
          a 2D array of points contained within the circle (x,y,r) = (%s,%s,%s)
  
      Notes:
          default ``npts`` is ``packing * floor(pi * radius**2)``
              """ % (
              x,
              y,
              r,
          )
          return self.forward((x, y, r), npts)
  
      return forward_circle
  
file_path: mystic/mystic/models/circle.py
imports: from .abstract_model import AbstractModel
  from numpy import array, pi, arange
  from numpy import sin, cos
  from math import floor, sqrt
  import random
label_desc: Use image node_id 4 for calling the Circle obj's underlying member method code with example usage: obj.ForwardFactory(coeffs) and returns: forward_circle, self