IMP logo
IMP Reference Guide  2.19.0
The Integrative Modeling Platform
IMP.EMageFit.sampling Namespace Reference

Utility functions to handle sampling. More...

Detailed Description

Utility functions to handle sampling.

Functions

def create_sampling_grid_2d
 Creates a grid of positions (Vector3Ds), centered at 0. More...
 
def create_sampling_grid_3d
 Creates a grid of positions (Vector3Ds), centered at 0. More...
 
def get_orientations_nearby
 Rotations nearby a given one. More...
 

Function Documentation

def IMP.EMageFit.sampling.create_sampling_grid_2d (   diameter,
  n_axis_points 
)

Creates a grid of positions (Vector3Ds), centered at 0.

The shape of the grid is a circle with diameter given by the parameter. n_axis_points is the number of points along an axis: The axis X Y will contain n_axis_points, equispaced. The other regions of space will contain only the points allowed by the size of the circle.

Note
This function is only available in Python.

Definition at line 48 of file sampling.py.

def IMP.EMageFit.sampling.create_sampling_grid_3d (   diameter,
  n_axis_points 
)

Creates a grid of positions (Vector3Ds), centered at 0.

Parameters
diameterThe shape of the grid is a sphere with this diameter.
n_axis_pointsNumber of points used along an axis for the grid. The axis X Y and Z will contain n_axis_points, equispaced. The other regions of space will contain only the points allowed by the size of the sphere.
Note
This function is only available in Python.

Definition at line 24 of file sampling.py.

def IMP.EMageFit.sampling.get_orientations_nearby (   rotation,
  n,
  f 
)

Rotations nearby a given one.

They are got interpolating with the rotations of the uniform coverage. The parameter f (0 <= f <= 1) must be close to 0 to get orientations that are close to the given orientation

  • Values from 0.1 (tight cluster) to 0.4 (loose) seem to be ok n - number of rotations requested
Note
This function is only available in Python.

Definition at line 73 of file sampling.py.