B_Spline

scalation.calculus.B_Spline
See theB_Spline companion class
object B_Spline

Companion object for B_Spline class provides functions for clamping the the ends of a spline and running timing benchmarks.

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
B_Spline.type

Members list

Value members

Concrete methods

def benchmark[R](reps: Int, useSeconds: Boolean, title: String)(block: => R): R

Gather timing statistics for repeated executions of a block, prints the statistics, and returns the value produced by the block.

Gather timing statistics for repeated executions of a block, prints the statistics, and returns the value produced by the block.

Type parameters

R

result type of block

Value parameters

block

block of code to execute

reps

number of replications

title

title for statistic

useSeconds

record time as seconds instead of milliseconds (default = false)

Attributes

def benchmarked[R](reps: Int, useSeconds: Boolean, title: String)(block: => R): (R, Statistic)

Gather timing statistics for repeated executions of a block and returns a tuple containing the return value produced by the block and the Statistic instance used to gather the statistics.

Gather timing statistics for repeated executions of a block and returns a tuple containing the return value produced by the block and the Statistic instance used to gather the statistics.

Type parameters

R

result type of block

Value parameters

block

block of code to execute

reps

number of replications

title

title for statistic

useSeconds

record time as seconds instead of milliseconds (default = false)

Attributes

def clamp(m: Int, t: VectorD, isInclusive: Boolean): VectorD

Return a "clamped" version of the input vector, augmented to ensure that each end has m-many repeated points. If isInclusive is true, then the first and last values of the vector are repeated; otherwise, the values t(0)-sqrt(EPSILON) and t(t.dim-1)+sqrt(EPSILON) are repeated for the beginning and end, respectively.

Return a "clamped" version of the input vector, augmented to ensure that each end has m-many repeated points. If isInclusive is true, then the first and last values of the vector are repeated; otherwise, the values t(0)-sqrt(EPSILON) and t(t.dim-1)+sqrt(EPSILON) are repeated for the beginning and end, respectively.

Value parameters

isInclusive

repeat end points (default = true)

m

intended B-spline order (degree = m - 1)

t

non-decreasing vector of time points

Attributes