Lines Matching refs:sample

315   FunctionSample sample;  in TEST()  local
316 sample.x = 1.0; in TEST()
317 sample.value = 1.0; in TEST()
318 sample.value_is_valid = true; in TEST()
319 samples.push_back(sample); in TEST()
331 FunctionSample sample; in TEST() local
332 sample.x = 1.0; in TEST()
333 sample.value = 1.0; in TEST()
334 sample.value_is_valid = true; in TEST()
335 sample.gradient = 2.0; in TEST()
336 sample.gradient_is_valid = true; in TEST()
337 samples.push_back(sample); in TEST()
350 FunctionSample sample; in TEST() local
351 sample.x = 1.0; in TEST()
352 sample.value = 7.0; in TEST()
353 sample.value_is_valid = true; in TEST()
354 sample.gradient = 7.0; in TEST()
355 sample.gradient_is_valid = true; in TEST()
356 samples.push_back(sample); in TEST()
360 FunctionSample sample; in TEST() local
361 sample.x = -3.0; in TEST()
362 sample.value = 11.0; in TEST()
363 sample.value_is_valid = true; in TEST()
364 samples.push_back(sample); in TEST()
378 FunctionSample sample; in TEST() local
379 sample.x = 1.0; in TEST()
380 sample.value = 7.0; in TEST()
381 sample.value_is_valid = true; in TEST()
382 sample.gradient = 7.0; in TEST()
383 sample.gradient_is_valid = true; in TEST()
384 samples.push_back(sample); in TEST()
388 FunctionSample sample; in TEST() local
389 sample.x = -3.0; in TEST()
390 sample.value = 11.0; in TEST()
391 sample.value_is_valid = true; in TEST()
392 sample.gradient = -9; in TEST()
393 sample.gradient_is_valid = true; in TEST()
394 samples.push_back(sample); in TEST()
409 FunctionSample sample; in TEST() local
410 sample.x = 1.0; in TEST()
411 sample.value = EvaluatePolynomial(true_polynomial, sample.x); in TEST()
412 sample.value_is_valid = true; in TEST()
413 samples.push_back(sample); in TEST()
417 FunctionSample sample; in TEST() local
418 sample.x = -3.0; in TEST()
419 sample.value = EvaluatePolynomial(true_polynomial, sample.x); in TEST()
420 sample.value_is_valid = true; in TEST()
421 samples.push_back(sample); in TEST()
425 FunctionSample sample; in TEST() local
426 sample.x = 2.0; in TEST()
427 sample.value = EvaluatePolynomial(true_polynomial, sample.x); in TEST()
428 sample.value_is_valid = true; in TEST()
429 samples.push_back(sample); in TEST()
433 FunctionSample sample; in TEST() local
434 sample.x = 0.0; in TEST()
435 sample.value = EvaluatePolynomial(true_polynomial, sample.x); in TEST()
436 sample.value_is_valid = true; in TEST()
437 samples.push_back(sample); in TEST()
452 FunctionSample sample; in TEST() local
453 sample.x = 1.0; in TEST()
454 sample.value = EvaluatePolynomial(true_polynomial, sample.x); in TEST()
455 sample.value_is_valid = true; in TEST()
456 samples.push_back(sample); in TEST()
460 FunctionSample sample; in TEST() local
461 sample.x = -3.0; in TEST()
462 sample.value = EvaluatePolynomial(true_polynomial, sample.x); in TEST()
463 sample.value_is_valid = true; in TEST()
464 samples.push_back(sample); in TEST()
468 FunctionSample sample; in TEST() local
469 sample.x = 2.0; in TEST()
470 sample.value = EvaluatePolynomial(true_polynomial, sample.x); in TEST()
471 sample.value_is_valid = true; in TEST()
472 sample.gradient = EvaluatePolynomial(true_gradient_polynomial, sample.x); in TEST()
473 sample.gradient_is_valid = true; in TEST()
474 samples.push_back(sample); in TEST()
489 FunctionSample sample; in TEST() local
490 sample.x = -3.0; in TEST()
491 sample.value = EvaluatePolynomial(true_polynomial, sample.x); in TEST()
492 sample.value_is_valid = true; in TEST()
493 sample.gradient = EvaluatePolynomial(true_gradient_polynomial, sample.x); in TEST()
494 sample.gradient_is_valid = true; in TEST()
495 samples.push_back(sample); in TEST()
499 FunctionSample sample; in TEST() local
500 sample.x = 2.0; in TEST()
501 sample.value = EvaluatePolynomial(true_polynomial, sample.x); in TEST()
502 sample.value_is_valid = true; in TEST()
503 sample.gradient = EvaluatePolynomial(true_gradient_polynomial, sample.x); in TEST()
504 sample.gradient_is_valid = true; in TEST()
505 samples.push_back(sample); in TEST()