public class

ScalarOperation

extends Object
implements ScalarFunction<T>
java.lang.Object
   ↳ es.usc.citius.hipster.model.function.impl.ScalarOperation<E extends java.lang.Comparable<E>>

Class Overview

A scalar operation is an implementation of ScalarFunction that also defines:

  • identity element (A*i = A)

Summary

Public Constructors
ScalarOperation(ScalarFunction<E> operation, double identityElem)
Unique constructor for ScalarOperation, that takes the ScalarFunction applied and the identity element.
Public Methods
static ScalarOperation<Double> doubleMultiplicationOp()
Builds the scaling operation for Doubles, that is the multiplying operation for the factor.
double getIdentityElem()
E scale(E a, double b)
[Expand]
Inherited Methods
From class java.lang.Object
From interface es.usc.citius.hipster.model.function.ScalarFunction

Public Constructors

public ScalarOperation (ScalarFunction<E> operation, double identityElem)

Unique constructor for ScalarOperation, that takes the ScalarFunction applied and the identity element.

Parameters
operation operation definition
identityElem identity

Public Methods

public static ScalarOperation<Double> doubleMultiplicationOp ()

Builds the scaling operation for Doubles, that is the multiplying operation for the factor.

Returns

public double getIdentityElem ()

Returns
  • identity element

public E scale (E a, double b)