INNER CODE UNIT · C++

Ratio

rcedgar/usearch12 · src/accepter.cpp:168

		double Ratio = double(TargetSize)/double(QuerySize);
		if (Ratio < oget_flt(OPT_min_sizeratio))
			return true;
		}

	if (ofilled(OPT_minqt) || ofilled(OPT_maxqt) || ofilled(OPT_minsl) || ofilled(OPT_maxsl))
		{
		unsigned QL = Query->m_L;
		unsigned TL = Target->m_L;
		asserta(QL != 0 && TL != 0);

		double q = double(QL);
		double t = double(TL);
		double s = double(min(QL, TL));
		double l = double(max(QL, TL));

		double qt = q/t;
		double sl = s/l;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…