Calculates the Boundedness value to given confinement radius, diffusion coefficient, timlag and number of steps.
@param D diffusion coefficient
@param N Number of steps
@param timelag Timelag
@param confRadius Confinement radius
@return Boundedness value
356140
public static double calculateBoundedness(double D, int N, double timelag, double confRadius){
		double r = confRadius;
		double cov_area = a(N)*D*timelag;
		double res = cov_area/(4*r*r);
		return res;
	}
1184902
public double coveringRadiusFromEntries(DBID routingObjectID, AbstractMTree<O, N, E, ?> mTree) {
    double coveringRadius = 0.;
    for(int i = 0; i < getNumEntries(); i++) {
      E entry = getEntry(i);
      final double cover = entry.getParentDistance() + entry.getCoveringRadius();
      coveringRadius = coveringRadius < cover ? cover : coveringRadius;
    }
    return coveringRadius;
  }
1370701
@Override
    public DescriptorValue calculate(IAtomContainer atomContainer) {
        IAtomContainer cloneContainer = AtomContainerManipulator.removeHydrogens(atomContainer);
        double petitjeanNumber; //weinerPath
        int diameter = PathTools.getMolecularGraphDiameter(cloneContainer);
        int radius = PathTools.getMolecularGraphRadius(cloneContainer);

        if (diameter == 0)
            petitjeanNumber = 0;
        else
            petitjeanNumber = (diameter - radius) / (double) diameter;
        return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), new DoubleResult(
                petitjeanNumber), getDescriptorNames());
    }
556183
public int dividedBy(TimeDuration duration) {
        // (a + b)/(c + d) = 1 / ((c + d) / a) + 1 / ((c + d) / b)
        // XXX This will not have the precision it should
        double thisDuration = (double) getSec() * (double) NANOSEC_IN_SEC + (double) getNanoSec();
        double otherDuration = (double) duration.getSec() * (double) NANOSEC_IN_SEC + (double) duration.getNanoSec();
        return (int) (thisDuration / otherDuration);
    }
288866
@Override
    public DescriptorValue calculate(IAtom atom, IAtomContainer container) {
        int period;
        String symbol = atom.getSymbol();
        period = periodicTable.get(symbol);
        return new DescriptorValue(getSpecification(), getParameterNames(), getParameters(), new IntegerResult(period),
                                   NAMES);
    }
1251194
public Bounds getDistanceBounds(TimePoint tpFrom, TimePoint tpTo) {
		final long max = distance[tpFrom.getID()][tpTo.getID()];
		final long min = -distance[tpTo.getID()][tpFrom.getID()];
		return new Bounds(min, max);
	}
671133
public static int sturges(int n) {
        int k = (int) Math.ceil(Math.log2(n) + 1);
        if (k < 5) k = 5;
        return k;
    }
359455
public final Bounds getAdmissibleDistanceBounds(TimePoint tpTo) {
		final APSPSolver stpSolver = (APSPSolver) constraintSolvers[0];
		return stpSolver.getDistanceBounds(stpSolver.getSource(), tpTo);
	}
136506
def obfn_dfd(self):
        
        """

        Ef = self.eval_Rf(self.Xf)
        E = sl.irfftn(Ef, self.cri.Nv, self.cri.axisN)

        return (np.linalg.norm(self.W * E)**2) / 2.0
484172
def ldcoeffs(teff,logg=4.5,feh=0):
    
    teffs = np.atleast_1d(teff)
    loggs = np.atleast_1d(logg)

    Tmin,Tmax = (LDPOINTS[:,0].min(),LDPOINTS[:,0].max())
    gmin,gmax = (LDPOINTS[:,1].min(),LDPOINTS[:,1].max())

    teffs[(teffs < Tmin)] = Tmin + 1
    teffs[(teffs > Tmax)] = Tmax - 1
    loggs[(loggs < gmin)] = gmin + 0.01
    loggs[(loggs > gmax)] = gmax - 0.01

    u1,u2 = (U1FN(teffs,loggs),U2FN(teffs,loggs))
    return u1,u2
1309182
public double computeSecondCover(boolean leaf) {
    double max = 0.;
    for(DistanceEntry<E> e : secondAssignments) {
      double cover = leaf ? e.getDistance() : (e.getEntry().getCoveringRadius() + e.getDistance());
      max = cover > max ? cover : max;
    }
    return max;
  }
557121
public Frame frId(int d, int n) {
    int idx = _display[_tod-d]+n;
    assert _ary[idx]!=null;
    return _ary[idx];
  }
1157549
private static long dateTimeDifference(final Temporal d1, final Temporal d2) {
      return ChronoUnit.SECONDS.between(d1, d2);
  }
494194
private void computeBoundedTargetValues() {
        mTargetX = (mClampedStartingX - mBounds.exactCenterX()) * .7f;
        mTargetY = (mClampedStartingY - mBounds.exactCenterY()) * .7f;
        mTargetRadius = mBoundedRadius;
    }
101677
def time_col_laminar(EnergyDis, Temp, ConcAl, ConcClay, coag, material,
                     DiamTarget, DiamTube, DIM_FRACTAL, RatioHeightDiameter):
    
    return (((1/6) * ((6/np.pi)**(1/3))
             * frac_vol_floc_initial(ConcAl, ConcClay, coag, material) ** (-2/3)
             * (pc.viscosity_kinematic(Temp).magnitude / EnergyDis) ** (1 / 2)
             * (DiamTarget / material.Diameter) ** (2*DIM_FRACTAL/3 - 2)
             )  # End of the numerator
            / (gamma_coag(ConcClay, ConcAl, coag, material, DiamTube,
                          RatioHeightDiameter)
               )  # End of the denominator
            )
924415
private static BigInteger computeMonths(Duration d) {
    return d.getYears().multiply(BigInteger.valueOf(12)).add(d.getMonths());
  }
312955
@Pure
	public Iterable<GridCell<P>> getGridCellsOn(Rectangle2afp<?, ?, ?, ?, ?, ?> bounds) {
		return getGridCellsOn(bounds, false);
	}