Rosetta 3.3
Functions | Variables
rosetta_py::utility::rankorder Namespace Reference


def argmax
def argmin
def order
def rank


list x = [5, None, None, 6, 2, 3, 2, 0, 5, 5, 1, None]
tuple O = order(x, NoneIsLast=NoneIsLast, decreasing=decreasing)
tuple R = rank(x, NoneIsLast=NoneIsLast, decreasing=decreasing, ties=ties)

Function Documentation

def rosetta_py::utility::rankorder::argmax (   array)
Returns the index of the largest value in the iterable (last on ties).
def rosetta_py::utility::rankorder::argmin (   array)
Returns the index of the smallest value in the iterable (first on ties).
def rosetta_py::utility::rankorder::order (   x,
  NoneIsLast = True,
  decreasing = False 
Returns the ordering of the elements of x. The list
[ x[j] for j in order(x) ] is a sorted version of x.
That is, order[0] tells where to look in x for the lowest/highest element,
order[1] for the next lowest/highest, and so on.

Missing values in x are indicated by None. If NoneIsLast is true,
then missing values are ordered to be at the end.
Otherwise, they are ordered at the beginning.
def rosetta_py::utility::rankorder::rank (   x,
  NoneIsLast = True,
  decreasing = False,
  ties = "first" 
Returns the ranking of the elements of x. The position of the first
element in the original vector is rank[0] in the sorted vector.
That is, rank[0] gives the position in the sorted list of the original x[0],
rank[1] gives the new position of x[1], and so on.

Missing values are indicated by None.  Calls the order() function.
Ties are NOT averaged by default. Choices are:
     "first" "average" "min" "max" "random" "average"

Variable Documentation

tuple rosetta_py::utility::rankorder::O = order(x, NoneIsLast=NoneIsLast, decreasing=decreasing)
tuple rosetta_py::utility::rankorder::R = rank(x, NoneIsLast=NoneIsLast, decreasing=decreasing, ties=ties)
list rosetta_py::utility::rankorder::x = [5, None, None, 6, 2, 3, 2, 0, 5, 5, 1, None]

Referenced by correlation_coefficient(), ObjexxFCL::cube(), numeric::cube(), utility::PeriodicSplineReader::dF(), numeric::interpolation::spline::BicubicSpline::dFdx(), numeric::interpolation::spline::BicubicSpline::dFdy(), numeric::deriv::dihedral_p1_cosine_deriv(), numeric::deriv::dihedral_p2_cosine_deriv(), numeric::dihedral_radians(), numeric::random::do_recursion(), numeric::statistics::errf(), numeric::statistics::errfc(), utility::PeriodicSplineReader::F(), ObjexxFCL::fmt::F(), numeric::interpolation::spline::BicubicSpline::F(), ObjexxFCL::FArray2P< T >::FArray2P(), ObjexxFCL::fast_remainder(), numeric::fast_remainder(), numeric::interpolation::spline::BicubicSpline::FdF(), numeric::interpolation::spline::SplineGenerator::get_interpolator(), numeric::inplace_product(), numeric::inplace_transpose_product(), numeric::xyzMatrix< T >::left_multiply_by(), numeric::xyzMatrix< T >::left_multiply_by_transpose(), main(), ObjexxFCL::mod(), numeric::mod(), ObjexxFCL::modulo(), numeric::modulo(), numeric::xyzMatrix< T >::operator*=(), numeric::deriv::p1_theta_deriv(), basic::periodic_range(), numeric::read_row(), ObjexxFCL::remainder(), numeric::remainder(), numeric::xyzMatrix< T >::right_multiply_by(), numeric::xyzMatrix< T >::right_multiply_by_transpose(), numeric::rotation_axis(), run_pep_prep(), numeric::sin_cos_range(), numeric::interpolation::spline::spline_interpolate(), numeric::interpolation::spline::CubicSpline::sqr(), numeric::interpolation::spline::BicubicSpline::sqr(), ObjexxFCL::square(), numeric::square(), and utility::sys_sleep().

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines