System.out.println("Avg subjects per property:" + avgSubjectsPerProperty()); System.out.println("Avg subproperties:" + avgSubProperties(false)); System.out.println("Avg superproperties:" + avgSuperProperties(false));
System.out.println("Avg subjects per property:" + avgSubjectsPerProperty()); System.out.println("Avg subproperties:" + avgSubProperties(false)); System.out.println("Avg superproperties:" + avgSuperProperties(false));
_branchCount = isConstant(predicate) ? _estimate.avg(predicate) : _estimate.avgSubjectsPerProperty(); _branchCount = _estimate.avg(inv(predicate)); else _branchCount = _estimate.avgSubjectsPerProperty(); _branchCount = _estimate.avgSubjectsPerProperty(); + (isConstant(predicate) ? _estimate.avg(predicate) : _estimate.avgSubjectsPerProperty()) * _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); _branchCount = isConstant(predicate) ? _estimate.size(predicate) : _estimate.avgPairsPerProperty(); _branchCount = _estimate.getPropertyCount() * _estimate.avgSubjectsPerProperty(); */ + _estimate.avgSubjectsPerProperty() * _estimate.getCost(KBOperation.GET_PROPERTY_VALUE)); _branchCount = _estimate.avgPairsPerProperty() * _estimate.getPropertyCount();
_branchCount = isConstant(predicate) ? _estimate.avg(predicate) : _estimate.avgSubjectsPerProperty(); _branchCount = _estimate.avg(inv(predicate)); else _branchCount = _estimate.avgSubjectsPerProperty(); _branchCount = _estimate.avgSubjectsPerProperty(); + (isConstant(predicate) ? _estimate.avg(predicate) : _estimate.avgSubjectsPerProperty()) * _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); _branchCount = isConstant(predicate) ? _estimate.size(predicate) : _estimate.avgPairsPerProperty(); _branchCount = _estimate.getPropertyCount() * _estimate.avgSubjectsPerProperty(); */ + _estimate.avgSubjectsPerProperty() * _estimate.getCost(KBOperation.GET_PROPERTY_VALUE)); _branchCount = _estimate.avgPairsPerProperty() * _estimate.getPropertyCount();
_branchCount = isConstant(predicate) ? _estimate.avg(predicate) : _estimate.avgSubjectsPerProperty(); _branchCount = _estimate.avg(inv(predicate)); else _branchCount = _estimate.avgSubjectsPerProperty(); _branchCount = _estimate.avgSubjectsPerProperty(); + (isConstant(predicate) ? _estimate.avg(predicate) : _estimate.avgSubjectsPerProperty()) * _estimate.getCost(KBOperation.GET_PROPERTY_VALUE); _branchCount = isConstant(predicate) ? _estimate.size(predicate) : _estimate.avgPairsPerProperty(); _branchCount = _estimate.getPropertyCount() * _estimate.avgSubjectsPerProperty(); */ + _estimate.avgSubjectsPerProperty() * _estimate.getCost(KBOperation.GET_PROPERTY_VALUE)); _branchCount = _estimate.avgPairsPerProperty() * _estimate.getPropertyCount();