Home
last modified time | relevance | path

Searched refs:new_min (Results 1 – 25 of 296) sorted by relevance

12345678910>>...12

/dports/math/R-cran-recipes/recipes/tests/testthat/
H A Dtest_range.R24 new_min <- -12 globalVar
26 new_range <- new_max - new_min
31 carb <- ifelse(carb < new_min, new_min, carb)
36 hydro <- ifelse(hydro < new_min, new_min, hydro)
70 new_min <- 0 globalVar
72 new_range <- new_max - new_min
77 carb <- ifelse(carb < new_min, new_min, carb)
82 hydro <- ifelse(hydro < new_min, new_min, hydro)
101 new_min <- 0 globalVar
103 new_range <- new_max - new_min
[all …]
/dports/biology/avida/avida-2.12.4-src/avida-core/source/tools/
H A DcHistogram.cc46 void cHistogram::Resize(int new_max, int new_min) in Resize() argument
49 if (new_max < new_min) { in Resize()
50 cerr << "Error: Trying to resize histogram to [" << new_min << "," << new_max << "]" << endl; in Resize()
56 int new_num_bins = new_max - new_min + 1; in Resize()
60 int overlap_min = Max(min_bin, new_min); in Resize()
64 for (cur_bin = new_min; cur_bin < min_bin; cur_bin++) in Resize()
65 new_bins[cur_bin - new_min] = 0; in Resize()
67 new_bins[cur_bin - new_min] = 0; in Resize()
69 new_bins[cur_bin - new_min] = bins[cur_bin - min_bin]; in Resize()
76 new_total += new_bins[i] * (i + new_min); in Resize()
[all …]
/dports/devel/libxs/libxs-1.2.0/src/
H A Dprefix_filter.cpp256 if (c + node_->min < new_min) in pfx_rm_all()
257 new_min = c + node_->min; in pfx_rm_all()
272 xs_assert (new_min == new_max); in pfx_rm_all()
273 xs_assert (new_min >= node_->min && in pfx_rm_all()
280 node_->min = new_min; in pfx_rm_all()
284 xs_assert (new_max - new_min + 1 > 1); in pfx_rm_all()
287 xs_assert (new_min > node_->min || in pfx_rm_all()
289 xs_assert (new_min >= node_->min); in pfx_rm_all()
293 node_->count = new_max - new_min + 1; in pfx_rm_all()
302 node_->min = new_min; in pfx_rm_all()
[all …]
/dports/net/nanomsg/nanomsg-1.1.5/src/protocols/pubsub/
H A Dtrie.c246 uint8_t new_min; in nn_trie_subscribe() local
335 new_children = new_max - new_min + 1; in nn_trie_subscribe()
336 if ((*node)->u.dense.min != new_min) { in nn_trie_subscribe()
349 (*node)->u.dense.min = new_min; in nn_trie_subscribe()
364 new_min = 255; in nn_trie_subscribe()
368 new_min = new_min < c2 ? new_min : c2; in nn_trie_subscribe()
371 new_min = new_min < *data ? new_min : *data; in nn_trie_subscribe()
386 (*node)->u.dense.min = new_min; in nn_trie_subscribe()
483 int new_min; in nn_node_unsubscribe() local
569 new_min = i + (*self)->u.dense.min; in nn_node_unsubscribe()
[all …]
/dports/databases/grass7/grass-7.8.6/raster/r.rescale/
H A Dmain.c32 long new_min, new_max; in main() local
102 sscanf(parm.to->answers[0], "%ld", &new_min); in main()
104 if (new_min > new_max) { in main()
105 value = new_min; /* swap */ in main()
106 new_min = new_max; in main()
111 old_name, old_min, old_max, new_name, new_min, new_max); in main()
133 new_delta = new_max - new_min; in main()
136 prev = new_min; in main()
139 value = (int)(divisor * (cat - old_min) + new_min + .5); in main()
/dports/misc/py-python-utils/python-utils-2.6.3/python_utils/
H A Dconverters.py239 def remap(value, old_min, old_max, new_min, new_max): argument
316 isinstance(new_min, decimal.Decimal) or
324 isinstance(new_min, float) or
336 new_min = type_(new_min)
339 new_range = new_max - new_min
347 new_min, new_max))
356 new_value += new_min
/dports/databases/grass7/grass-7.8.6/raster/r.rescale.eq/
H A Dmain.c36 CELL new_min, new_max; in main() local
108 sscanf(parm.to->answers[0], "%d", &new_min); in main()
110 if (new_min > new_max) { in main()
111 cat = new_min; /* swap */ in main()
112 new_min = new_max; in main()
116 old_name, old_min, old_max, new_name, new_min, new_max); in main()
139 new_min, new_max, in main()
/dports/lang/cim/cim-3.37/lib/
H A Dgbc.c335 *new_min; variable
357 p = new_min; in add_to_pointers()
415 new_min = __NULL;
417 new_min = (char *) realloc (__min, new_size);
419 if (new_min != __NULL)
421 disp = new_min - (char *) __min;
422 if (new_min != (char *) __min)
425 new_min = (char *) __min + disp;
430 __min = (__dhp) new_min;
435 __max = (__dhp) (new_min + new_size);
/dports/graphics/krita/krita-4.4.8/plugins/filters/halftone/
H A DKisHalftoneFilter.h69 static inline quint8 mapU8ToRange(quint8 value, quint8 new_min, quint8 new_max) { in mapU8ToRange() argument
70 Q_UNUSED(new_min); in mapU8ToRange()
75 static inline T mapU8ToRange(quint8 value, T new_min, T new_max) { in mapU8ToRange() argument
76 return value * (new_max - new_min) / 255 + new_min; in mapU8ToRange()
/dports/net/libzmq4/zeromq-4.3.4/src/
H A Dgeneric_mtrie_impl.hpp236 it.new_min = it.node->_min + it.node->_count - 1; in rm()
302 < it.new_min) in rm()
303 it.new_min = in rm()
342 zmq_assert (it.new_min == it.new_max); in rm()
343 zmq_assert (it.new_min >= it.node->_min); in rm()
344 zmq_assert (it.new_min in rm()
355 it.node->_min = it.new_min; in rm()
358 if (it.new_min > it.node->_min in rm()
366 zmq_assert (it.new_min > it.node->_min in rm()
378 it.new_max - it.new_min + 1; in rm()
[all …]
H A Dtrie.cpp189 unsigned char new_min = _min; in rm() local
192 new_min = i + _min; in rm()
196 zmq_assert (new_min != _min); in rm()
199 zmq_assert (new_min > _min); in rm()
200 zmq_assert (_count > new_min - _min); in rm()
202 _count = _count - (new_min - _min); in rm()
207 memmove (_next.table, old_table + (new_min - _min), in rm()
211 _min = new_min; in rm()
/dports/net/py-pyzmq/pyzmq-22.3.0/bundled/zeromq/src/
H A Dgeneric_mtrie_impl.hpp236 it.new_min = it.node->_min + it.node->_count - 1; in rm()
302 < it.new_min) in rm()
303 it.new_min = in rm()
342 zmq_assert (it.new_min == it.new_max); in rm()
343 zmq_assert (it.new_min >= it.node->_min); in rm()
344 zmq_assert (it.new_min in rm()
355 it.node->_min = it.new_min; in rm()
358 if (it.new_min > it.node->_min in rm()
366 zmq_assert (it.new_min > it.node->_min in rm()
378 it.new_max - it.new_min + 1; in rm()
[all …]
H A Dtrie.cpp189 unsigned char new_min = _min; in rm() local
192 new_min = i + _min; in rm()
196 zmq_assert (new_min != _min); in rm()
199 zmq_assert (new_min > _min); in rm()
200 zmq_assert (_count > new_min - _min); in rm()
202 _count = _count - (new_min - _min); in rm()
207 memmove (_next.table, old_table + (new_min - _min), in rm()
211 _min = new_min; in rm()
/dports/devel/cmake-gui/cmake-3.22.1/Tests/CTestTestStopTime/
H A DGetDate.cmake107 set(new_min ${${GD_PREFIX}MINUTE}) variable
112 math(EXPR new_min "${${GD_PREFIX}MINUTE} + 1")
114 while(${new_min} GREATER_EQUAL 60)
115 math(EXPR new_min "${new_min} - 60")
122 string(LENGTH ${new_min} min_len)
128 set(new_min "0${new_min}") variable
/dports/devel/cmake/cmake-3.22.1/Tests/CTestTestStopTime/
H A DGetDate.cmake107 set(new_min ${${GD_PREFIX}MINUTE}) variable
112 math(EXPR new_min "${${GD_PREFIX}MINUTE} + 1")
114 while(${new_min} GREATER_EQUAL 60)
115 math(EXPR new_min "${new_min} - 60")
122 string(LENGTH ${new_min} min_len)
128 set(new_min "0${new_min}") variable
/dports/devel/cmake-doc/cmake-3.22.1/Tests/CTestTestStopTime/
H A DGetDate.cmake107 set(new_min ${${GD_PREFIX}MINUTE}) variable
112 math(EXPR new_min "${${GD_PREFIX}MINUTE} + 1")
114 while(${new_min} GREATER_EQUAL 60)
115 math(EXPR new_min "${new_min} - 60")
122 string(LENGTH ${new_min} min_len)
128 set(new_min "0${new_min}") variable
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/wiredtiger/src/support/
H A Dthread_group.c133 uint32_t new_min, uint32_t new_max, uint32_t flags) in __thread_group_resize() argument
148 group->name, group->min, new_min, group->max, new_max); in __thread_group_resize()
154 if (new_min == group->min && new_max == group->max) in __thread_group_resize()
157 if (new_min > new_max) in __thread_group_resize()
161 group->name, group->min, new_min, group->max, new_max); in __thread_group_resize()
223 group->min = new_min; in __thread_group_resize()
224 while (group->current_threads < new_min) in __thread_group_resize()
247 group->min = new_min; in __thread_group_resize()
260 uint32_t new_min, uint32_t new_max, uint32_t flags) in __wt_thread_group_resize() argument
265 WT_TRET(__thread_group_resize(session, group, new_min, new_max, flags)); in __wt_thread_group_resize()
/dports/math/py-or-tools/or-tools-9.2/ortools/constraint_solver/
H A Dtrace.cc590 void SetMin(IntExpr* const expr, int64_t new_min) override { in SetMin() argument
592 absl::StrFormat("SetMin(%s, %d)", expr->DebugString(), new_min)); in SetMin()
600 void SetRange(IntExpr* const expr, int64_t new_min, in SetRange() argument
608 void SetMin(IntVar* const var, int64_t new_min) override { in SetMin() argument
610 absl::StrFormat("SetMin(%s, %d)", var->DebugString(), new_min)); in SetMin()
653 void SetStartMin(IntervalVar* const var, int64_t new_min) override { in SetStartMin() argument
663 void SetStartRange(IntervalVar* const var, int64_t new_min, in SetStartRange() argument
669 void SetEndMin(IntervalVar* const var, int64_t new_min) override { in SetEndMin() argument
679 void SetEndRange(IntervalVar* const var, int64_t new_min, in SetEndRange() argument
685 void SetDurationMin(IntervalVar* const var, int64_t new_min) override { in SetDurationMin() argument
[all …]
H A Dexpr_array.cc248 new_min = std::max(sum_min, new_min); in PushDown()
367 new_min = std::max(sum_min, new_min); in SumChanged()
536 new_min = std::max(sum_min, new_min); in PushDown()
2232 if (new_max < 0 || new_min > coefficient || new_min > new_max) { in SetRange()
2235 if (new_min > 0LL) { in SetRange()
3066 int64_t new_min = 0; in MakeSumArrayAux() local
3070 new_min = CapAdd(vars[i]->Min(), new_min); in MakeSumArrayAux()
3266 int64_t new_min = 0; in MakeSum() local
3270 new_min = CapAdd(vars[i]->Min(), new_min); in MakeSum()
3327 new_min = std::min(new_min, vars[i]->Min()); in MakeMin()
[all …]
/dports/devel/elixir-gen_stage/gen_stage-0.14.0/lib/gen_stage/dispatchers/
H A Dbroadcast_dispatcher.ex55 new_min = get_min(demands)
56 demands = adjust_demand(new_min, demands)
57 {:ok, new_min, {demands, waiting + new_min}}
64 new_min = get_min(demands)
65 demands = adjust_demand(new_min, demands)
66 {:ok, new_min, {demands, waiting + new_min}}
/dports/deskutils/semantik/semantik-1.2.7/src/fig/
H A Dbox_cloud.cpp77 qreal new_min = qAbs(h - (x * w) / hdiv); in paint() local
78 if (new_min < min) in paint()
80 min = new_min; in paint()
84 if (new_min > prev_min) { in paint()
87 prev_min = new_min; in paint()
/dports/graphics/krita/krita-4.4.8/plugins/generators/simplexnoise/
H A Dsimplexnoisegenerator.h61 …static inline double map_range(double value, double curr_min, double curr_max, double new_min, dou… in map_range() argument
62 return (value - curr_min) * (new_max - new_min) / (curr_max - curr_min) + new_min; in map_range()
/dports/net/jgroups/jgroups-2.12.0/src/org/jgroups/util/
H A DCreditMap.java75 long new_min=computeLowestCredit(); in remove() local
76 if(new_min > min_credits) { in remove()
77 min_credits=new_min; in remove()
190 long new_min=computeLowestCredit(); in replenish() local
191 if(new_min > min_credits) { in replenish()
192 min_credits=new_min; in replenish()
/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/macintosh/
H A Dwindfarm_pm121.c467 s32 new_min; in pm121_correct() local
471 new_min = (average_power * correction->slope) >> 16; in pm121_correct()
472 new_min += correction->offset; in pm121_correct()
473 new_min = (new_min >> 16) + min; in pm121_correct()
475 return max3(new_setpoint, new_min, 0); in pm121_correct()
480 s32 new_min, value, new_setpoint; in pm121_connect() local
485 new_min = value * pm121_connection->correction.slope; in pm121_connect()
486 new_min += pm121_connection->correction.offset; in pm121_connect()
487 if (new_min > 0) { in pm121_connect()
488 new_setpoint = max(setpoint, (new_min >> 16)); in pm121_connect()
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/macintosh/
H A Dwindfarm_pm121.c467 s32 new_min; in pm121_correct() local
471 new_min = (average_power * correction->slope) >> 16; in pm121_correct()
472 new_min += correction->offset; in pm121_correct()
473 new_min = (new_min >> 16) + min; in pm121_correct()
475 return max3(new_setpoint, new_min, 0); in pm121_correct()
480 s32 new_min, value, new_setpoint; in pm121_connect() local
485 new_min = value * pm121_connection->correction.slope; in pm121_connect()
486 new_min += pm121_connection->correction.offset; in pm121_connect()
487 if (new_min > 0) { in pm121_connect()
488 new_setpoint = max(setpoint, (new_min >> 16)); in pm121_connect()

12345678910>>...12