Questions tagged [upperbound]

Upperbound refers to the maximum limit or the highest capacity a system can handle.

137 questions
1
vote
1 answer

Overriding multiple generic functions with a single function with common upper bounds

I have two different interfaces interface ColumnSet { > V getValue(I column); } interface ParameterSet { > V getValue(I value); } where the types Column and Parameter are…
user2667523
  • 190
  • 1
  • 9
1
vote
2 answers

Is there a way for std::map to give a counter of all keys <= target_key in O(1) time?

I'm using std::map to store a set of numbers in sorted order. I would like to be able to obtain a counter of numbers less or equal than some target number in O(1) time (not including the time it takes to find the maximum key that is <= target). Is…
24n8
  • 1,898
  • 1
  • 12
  • 25
1
vote
0 answers

Creating upper and lower bound slopes to a nonlinear equation statistically

So I'm working with some data and I've noticed that the best fitting trendline is a polynomial function rather than a linear equation. I've found a tutorial that's a couple years old that allowed me to at least generate the LINEST array for the…
1
vote
1 answer

how to order the following data in asymptotic manner?

hey guys please help me out here I cant figure out how to do this one and I have a submission soon a1(n)=5, a2(n)=2^nlogn, a3(n)=n^100 a4(n)=n^n a5(n)=n! a6(n)=(0.5)^log(base2)n
1
vote
2 answers

How to check map::lower_bound failure?

I want to get a key-val pair from map a which key is less than or equal to a given K. I want to get end (or rend or any error indication) that So simple code and nearly same: #include #include using namespace std; int main() { …
DuckQueen
  • 772
  • 10
  • 62
  • 134
1
vote
0 answers

R upper and lower bounds for a regression function

I am trying to bound the following variables in a function lower = c(Hyp.b = 0.01, Hyp.Di = .0000001), upper = c(Hyp.b = 1.01, Hyp.Di = .1) The script is as follows: Hyp.q.forward.fun = function( time, Hyp.qi, Hyp.b, Hyp.Di ){ # time in…
1
vote
0 answers

binary_search & upper_bound

I want to convert all the ones in the following boolean array into zeroes using binary_search and upper_bound. But it isn't working. Can someone help me out with this?? Here's my code: #include #define ll long long using namespace…
harshahj97
  • 11
  • 1
1
vote
1 answer

Use geom_segment to plot arrows for selected data points on an existing plot

I have created a plot using ggplot2 package in R using the following data: # Ind filt objs flux filt objs err_flux# 01 4590 obj1 1005.448892 4590 errobj1 0.0401 02 6220 obj1 1420.626789 6220 errobj1 0.0392 03 7640 obj1…
akaur
  • 389
  • 1
  • 6
  • 22
1
vote
1 answer

setUpperBound of pictured chart

Can I change the maximum value of Axis if LineChart is drawn already? I know about setUpperBound() method, but I see that it works well when it is used with initialization of chart. But I want to change upper and lower bounds of an existed chart…
1
vote
2 answers

Understanding of Upperbound and Lowerbound in Scala

I have this scala code: class Creature { override def toString = "I exist" } class Person(val name: String) extends Creature { override def toString = name } class Employee(override val name: String) extends Person(name) { override def…
null
  • 8,669
  • 16
  • 68
  • 98
1
vote
1 answer

understanding Knapsack upper bound

I am interested in the knappsack problem and I want to solve it with a branch and bound algorithm. I know that the upper bound can be calculated by sorting the items 1..n descending by value/weight ratio, finding the break item s (the first item…
lwi
  • 1,682
  • 12
  • 21
1
vote
1 answer

How many setTimeouts can you set?

I was writing a server side job that was trying to throttle an operation by doing the following: var throttle = 1000 / 20; for (var i = 0; i < 80000; i++) { setTimeout(operation, Math.floor(throttle * i)); } I recognize that sleep works better…
SapphireSun
  • 9,170
  • 11
  • 46
  • 59
1
vote
0 answers

Matlab linprog Unbounded Function

I am working with the linprog function in matlab and I am having problems with the upper bound. The problem does not actually require an upper bound, only a lower one, so initially I had the upper bound set to UB=[] This does provide a solution, but…
1
vote
1 answer

Upper Bound with multiple classes - Java generics

I need to accept a Map that can be either TypeA or TypeB like below. Map> How do I declare this? I cannot specify two classes for upper bounds. Map> OR Map> is too…
Kevin Rave
  • 13,876
  • 35
  • 109
  • 173
1
vote
1 answer

I can't set an upper bound for the Result parameter of an AsyncTask

I'm trying to set an upper bound to the Result parameter of an AsyncTask like so: public class MyTask extends AsyncTask The compiler is complaining that 'extends is not expected, it's expecting a comma. I have tried…
user1743524
  • 655
  • 1
  • 7
  • 14