• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PolyMathOrg / PolyMath / 4385132063

pending completion
4385132063

push

github

GitHub
Merge pull request #316 from jecisc/divers-cleanings

2977 of 2977 new or added lines in 214 files covered. (100.0%)

19725 of 24212 relevant lines covered (81.47%)

2.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

75.76
/src/Math-Numerical/PMProjectedOneVariableFunction.class.st
1
Class {
2
        #name : #PMProjectedOneVariableFunction,
3
        #superclass : #Object,
4
        #instVars : [
5
                'index',
6
                'function',
7
                'argument'
8
        ],
9
        #category : #'Math-Numerical'
10
}
11

12
{ #category : #creation }
13
PMProjectedOneVariableFunction class >> function: aVectorFunction [
3✔
14
        ^super new initialize: aVectorFunction
3✔
15
]
3✔
16

17
{ #category : #information }
18
PMProjectedOneVariableFunction >> argumentWith: aNumber [
3✔
19

3✔
20
        ^argument at: index put: aNumber; yourself
3✔
21
]
3✔
22

23
{ #category : #transformation }
24
PMProjectedOneVariableFunction >> bumpIndex [
3✔
25

3✔
26
        index
3✔
27
                ifNil: [ index := 1 ]
3✔
28
                ifNotNil: [
3✔
29
                        index := index + 1.
3✔
30
                        index > argument size ifTrue: [ index := 1 ] ]
3✔
31
]
3✔
32

33
{ #category : #information }
34
PMProjectedOneVariableFunction >> index [
×
35

×
36
        index ifNil: [ index := 1 ].
×
37
        ^ index
×
38
]
×
39

40
{ #category : #initialization }
41
PMProjectedOneVariableFunction >> initialize: aFunction [
3✔
42
        function := aFunction.
3✔
43
        ^self
3✔
44
]
3✔
45

46
{ #category : #initialization }
47
PMProjectedOneVariableFunction >> setArgument: anArrayOrVector [
3✔
48
        argument := anArrayOrVector copy
3✔
49
]
3✔
50

51
{ #category : #initialization }
52
PMProjectedOneVariableFunction >> setIndex: anInteger [
×
53
        index := anInteger
×
54
]
×
55

56
{ #category : #information }
57
PMProjectedOneVariableFunction >> value: aNumber [
3✔
58
        ^function value: ( self argumentWith: aNumber)
3✔
59
]
3✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc